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
{{ message }}
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
What Node versions, OSs and CPU architectures are you building for?
node16-linux-x64 & windows
Describe the Bug
pkg/prelude/bootstrap.js:1876
throw error;
^
Error: File '/**/chat-aktar/node_modules/vm2/lib/setup-sandbox.js' was not included into executable at compilation stage. Please recompile adding it as asset or script.
at error_ENOENT (pkg/prelude/bootstrap.js:657:19)
at readFileFromSnapshot (pkg/prelude/bootstrap.js:1049:29)
at Object.readFileSync (pkg/prelude/bootstrap.js:1097:18)
at Object.<anonymous> (/snapshot/chat-aktar/node_modules/vm2/lib/vm.js:145:57)
at Module._compile (pkg/prelude/bootstrap.js:1930:22)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at Module.require (pkg/prelude/bootstrap.js:1855:31) {
errno: -2,
code: 'ENOENT',
path: '/snapshot/chat-aktar/node_modules/vm2/lib/setup-sandbox.js',
pkg: true
}
Can you try adding the package to your assets in the pkg config in your package.json? That seemed to do the trick on my end for the same error. Not sure why though.
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
What version of pkg are you using?
5.8.0
What version of Node.js are you using?
19.1.0
What operating system are you using?
Arch Linux
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
node16-linux-x64 & windows
Describe the Bug
Expected Behavior
Waiting for working exe and linux file.
To Reproduce
https://github.com/vercel/pkg
The text was updated successfully, but these errors were encountered: