Build error on Readium-js?

6 posts / 0 new
Last post

I'm trying to spin up a custom build of Readium-JS and I'm getting a build error around the eventEmitter. Has anyone else experienced this? Is there a guide somewhere on bootstrapping Readium?

I'm adding it as a submodule to my project, running npm install and running the build. Then including the individual modules per the multiple modules example, and getting an error that eventEmitter is not a function.

Can you please log an issue here:

https://github.com/readium/readium-js-viewer/issues

We will be happy to help you but it is easier for us to track there.  

But we will not doubt need more info.  Can you provide a log, more details about your setup, etc.?

Thanks!

Can you please log an issue here:

https://github.com/readium/readium-js-viewer/issues

We will be happy to help you but it is easier for us to track there.  

But we will not doubt need more info.  Can you provide a log, more details about your setup, etc.?

Thanks!

Thanks! It's actually on readium-js only, trying to bootstrap my own viewer. I will post there.

FYI if anyone else finds this.

Manually go into readium-shared-js and run npm run prepare first. This fixed the issue for me.

Ah, I believe npm run prepare should always be the first step.  Not sure it needs to be run from shared-js, but if you aren't using readium-js-viewer (i.e. the CLoudReader config) that my be the case.

Secondary menu