rschroll / efm

Epub for Monocle — A pure javascript implementation of the book data interface for Epub2 and Epub3
http://rschroll.github.com/efm
44 stars 15 forks source link

No "bookData" returned #9

Open Akahadaka opened 8 years ago

Akahadaka commented 8 years ago

Hi

Is EPM still supported. It seems to be what I'm looking for for a small project, but I'm having some trouble. Granted, I haven't spent too much time trying to debug, but want to check if it's still worth it first.

My issue: I get no bookData returned from the callback of

new Epub(this.response, function (bookData) {...});

I've tried both an Epub v 2 (1.8Mb) & 3 (177 Kb)

I did start to briefly look into epm.js and found on line 239 in

function getComponent(id, callback) {
...
files[id].getData(new zip.TextWriter(), function (data) {...});

that i wasn't really entering that code block at all.

Any help would be appreciated. Probably something silly I'm missing.

Thanks

Akahadaka commented 7 years ago

Replacing zip-js files with older versions from the example branch gh-pages seemed to solve the issue.

Reasons for incompatibility still need to be determined.

Raymond26 commented 7 years ago

Thanks @Akahadaka that worked for me.