h5p / h5p-drag-question

7 stars 83 forks source link

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

Open sunnythewebdeveloper opened 4 years ago

sunnythewebdeveloper commented 4 years ago

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 commented 4 years ago

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

sunnythewebdeveloper commented 4 years ago

@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 commented 4 years ago

@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 commented 4 years ago

@otacke thanks again