Error: Cannot find module 'C:\snapshot\gluworld\index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:946:15)
at Function._resolveFilename (pkg/prelude/bootstrap.js:1951:46)
at Module._load (node:internal/modules/cjs/loader:787:27)
at Function.runMain (pkg/prelude/bootstrap.js:1979:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.5.0
Expected Behavior
I expected a functioning executable file to be created that opens an application when run
What version of pkg are you using?
5.8.1
What version of Node.js are you using?
18.12.1
What operating system are you using?
Windows 11
What CPU architecture are you using?
x86_64
What Node versions, OSs and CPU architectures are you building for?
default
Describe the Bug
debugoutput.txt The pkg command compiles an EXE but the EXE does not run. It gives error:
$ ./index-win node:internal/modules/cjs/loader:949 throw err; ^
Error: Cannot find module 'C:\snapshot\gluworld\index.js' at Module._resolveFilename (node:internal/modules/cjs/loader:946:15) at Function._resolveFilename (pkg/prelude/bootstrap.js:1951:46) at Module._load (node:internal/modules/cjs/loader:787:27) at Function.runMain (pkg/prelude/bootstrap.js:1979:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
Node.js v18.5.0
Expected Behavior
I expected a functioning executable file to be created that opens an application when run
To Reproduce
git clone https://github.com/gluon-framework/examples.git cd examples cd gluworld npm install pkg index.js ./index-win