-
Notifications
You must be signed in to change notification settings - Fork 1k
[ERROR] Cannot include directory %1 into executable... Packaged correctly but no output, app not working #377
Comments
I am also facing same issue. I am using module-alias while require. please look into the issue |
I don't think that this is related to The recommendation from the readme says:
So prior to releasing, copy your dependencies from the Example error message
In my above example, the missing dependency is described in the error message:
So you simply need to have a build script that copies that dependency into the same directory where you build your executable:
This will enable your executable to find the missing dependency. |
This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label |
Hi, I created a small script in Node.js that uses a File System API to output data to a txt file and Chrome Headless Browser.
My goal was to package that app into an exe using pkg.
I ran:
npm install -g pkg
pkg myAppName.js
It has correctly given me
myAppName-win.exe
, however, when I run that executable, there is NO output to a txt file (which my app is supposed to do).ERROR:
When running
pkg myAppName.js
, I get this warning:Cannot include directory %1 into executable.
The directory must be distributed with executable as %2.
Can someone help? Thanks!
The text was updated successfully, but these errors were encountered: