Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The file "h5p-drag-question.js" is missing from library: "H5P.DragQuestion-1.13" #70

Open
sunnythewebdeveloper opened this issue May 6, 2020 · 4 comments

Comments

@sunnythewebdeveloper
Copy link

I got the library using the following cli command

h5p get h5p-drag-question

Build the package using following command

h5p pack -r h5p-drag-question h5p-drag-question-curriki.h5p

Got following error while trying to upload to WordPress, screenshot attached

image

How can I generate the missing "h5p-drag-question.js" file ?

@otacke
Copy link
Contributor

otacke commented May 6, 2020

This content type needs to be built first. Please cmp. the description at https://github.com/otacke/h5p-cornell#getting-started

@sunnythewebdeveloper
Copy link
Author

@otacke thanks a lot for reply.

I ran to same issue while packaging "h5p-interactive-video"

image

it seems many of the dependencies need to be build.

is there any easier why through "h5p cli" to get all the dependencies build while packaging ?

or we need to do it manually for all the dependencies ?

Best Regards,
Sunny

@otacke
Copy link
Contributor

otacke commented May 6, 2020

@sunnythewebdeveloper
It depends on what you're trying to achive. If you omit the -r parameter, then you'll only pack the library of Interactive Video and can share and upload it separately. If you make changes to multiple libraries, you can specify those when packing with h5p-cli.

Using the -r parameter is useful if you want to have a complete (and done) package that you want to share with others. And then you'll have to build all packages. Shouldn't be complicated to come up with a script for automating that.

@sunnythewebdeveloper
Copy link
Author

@otacke thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants