You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm creating a desktop app that is built on Electron with AngularJS. Before building as a production app, this module works as intended, amazing work. But after packaging it into a release build, it gives the following error: Error: ENOTDIR, not a directory.
This is probably some incompatibility with angular or something and I'd like some help fixing this bug.
The download path provided is:
let option = {
title: novel.info.name,
author: novel.info.author,
cover: novel.info.cover,
content: chapters
};
new epubGen(option, "A:\Downloads\My new book.epub");
The issue seems to originate at EPub.generateTempFile (C:\resources\app.asar\node_modules\epub-gen\lib\index.js:234):
generateTempFile() {
var base, generateDefer, htmlTocPath, ncxTocPath, opfPath, self;
generateDefer = new Q.defer();
self = this;
if (!fs.existsSync(this.options.tempDir)) {
fs.mkdirSync(this.options.tempDir);
}
fs.mkdirSync(this.uuid); <=========================== ERROR HERE
fs.mkdirSync(path.resolve(this.uuid, "./OEBPS"));
...
I was wondering what uuid is for and if it could lead to fixing the bug.
Kind Regards,
dr-nyt.
The text was updated successfully, but these errors were encountered:
As much as I like this module, the only solution I came across was to use another module called nodepub. This module and Electron/Angular don't go well together for some reason and hopefully, a fix is found soon.
I will keep this issue open unless the dev decides to close it or a fix is found.
Daylon
pushed a commit
to Daylon/epub-gen
that referenced
this issue
Sep 29, 2024
Hello,
I'm creating a desktop app that is built on Electron with AngularJS. Before building as a production app, this module works as intended, amazing work. But after packaging it into a release build, it gives the following error:
Error: ENOTDIR, not a directory
.This is probably some incompatibility with angular or something and I'd like some help fixing this bug.
The download path provided is:
The issue seems to originate
at EPub.generateTempFile (C:\resources\app.asar\node_modules\epub-gen\lib\index.js:234)
:I was wondering what uuid is for and if it could lead to fixing the bug.
Kind Regards,
dr-nyt.
The text was updated successfully, but these errors were encountered: