efm icon indicating copy to clipboard operation
efm copied to clipboard

No "bookData" returned

Open Akahadaka opened this issue 8 years ago • 2 comments

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 avatar Jul 10 '16 15:07 Akahadaka

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.

Akahadaka avatar Nov 07 '16 13:11 Akahadaka

Thanks @Akahadaka that worked for me.

Raymond26 avatar Jul 07 '17 02:07 Raymond26