The library file semantics.json of library H5P.CoursePresentation-1.22 does not exist. #2142
Replies: 13 comments
-
Does the editor not load in general or only for the course presentation? |
Beta Was this translation helpful? Give feedback.
-
So let me share the series of events that led to this.
|
Beta Was this translation helpful? Give feedback.
-
What library storage backend do you use? File or MongoDB? |
Beta Was this translation helpful? Give feedback.
-
Then you should try moving the |
Beta Was this translation helpful? Give feedback.
-
Should we delete it manually and add it from the repo again ?? |
Beta Was this translation helpful? Give feedback.
-
You mean this folder, right ! |
Beta Was this translation helpful? Give feedback.
-
Yes, it's this directory. Do you have the libraries directory under source control? If so, it should be enough to revert this directory to the state under source control. It might also be some caching issue, so wiping the Redis cache could work. |
Beta Was this translation helpful? Give feedback.
-
Let me try this, allow me some time. I'll update as soon as it's done. Thanks @sr258 Sebastian |
Beta Was this translation helpful? Give feedback.
-
"@lumieducation/h5p-react": "^7.5.2", Note: we cleared cache and removed libraries several times. |
Beta Was this translation helpful? Give feedback.
-
I don't believe the error of the last screenshot is related to the first problem. The error in the last screenshot indicates that the JS files for the core editor aren't loaded. Check the network tab to see if files aren't loaded correctly. Edit: Addition: Check that you've copied the H5P core files into the /h5p directory (the ones that are downloaded from GitHub from h5p-editor-php-library and h5p-php-library) |
Beta Was this translation helpful? Give feedback.
-
Our backend is NodeJS, do we still require to use these packages ? |
Beta Was this translation helpful? Give feedback.
-
You only need the JS and CSS parts and image resources, the PHP files can be deleted. But you have to download these files as they constitute the H5P core. You must have done so already at some point, otherwise you wouldn't have had a working H5P installation at all. The script to do this is here: https://github.com/Lumieducation/H5P-Nodejs-library/blob/master/packages/h5p-rest-example-server/download-core.sh |
Beta Was this translation helpful? Give feedback.
-
The file that was being uploaded was taken from h5p.org export option.
The same file was successfully uploaded in sample setup.
Frontend - React , Node version v14.17.5
Backend - Node, Node Version v16.13.0
The edit also doesn't load many a times even when the edit API response succeed
Beta Was this translation helpful? Give feedback.
All reactions