epub icon indicating copy to clipboard operation
epub copied to clipboard

Error: Invalid/missing file

Open menglingyu opened this issue 5 years ago • 1 comments

I use the code https://github.com/julien-c/epub/blob/master/example/example.js in my project

image

var EPub = require("epub");

var epub = new EPub("./111.epub", "/imagewebroot/", "/articlewebroot/");
epub.on("error", function(err){
    console.log("ERROR\n-----");
    throw err;
});
Error: Invalid/missing file
    at EPub.open (/Users/menglingyu/mly/anywhere-reader/node_modules/epub/epub.js:103:32)
    at EPub.parse (/Users/menglingyu/mly/anywhere-reader/node_modules/epub/epub.js:89:14)
    at Object.<anonymous> (/Users/menglingyu/mly/anywhere-reader/epub-dome/index.js:38:6)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)

menglingyu avatar Sep 14 '19 08:09 menglingyu

The same problem. Please, help!

MrtnvM avatar Jul 30 '21 07:07 MrtnvM