efm
efm copied to clipboard
No "bookData" returned
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
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.
Thanks @Akahadaka that worked for me.