nexe: TypeError: Cannot read property 'set' of undefined
I compiled my Node.JS script and when I ran the executable it displayed this error:
internal/modules/cjs/loader.js:1122
throw err;
^
TypeError: Cannot read property 'set' of undefined
[90m at Object.compileFunction (vm.js:375:17)[39m
[90m at wrapSafe (internal/modules/cjs/loader.js:1106:15)[39m
[90m at Module._compile (internal/modules/cjs/loader.js:1140:27)[39m
[90m at internal/bootstrap/pre_execution.js:118:36[39m
[90m at prepareMainThreadExecution (internal/bootstrap/pre_execution.js:119:3)[39m
[90m at internal/main/repl.js:18:1[39m
- Downloaded nexe (via npm)
- nexe main.js (in the project folder)
- main.exe
- ERROR
My script only uses these dependencies:
httpfschild_process
Environment:
- Platform(OS/Version): Windows 10
- Host Node Version: v14.1.0
- Target Node Version: v14.1.0
- Nexe version: 3.3.2
- Python Version: Python 2.7.18
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 5
- Comments: 15 (3 by maintainers)
Commits related to this issue
- Disable .Package:Nexe due to https://github.com/nexe/nexe/issues/768 - TypeError: Cannot read property 'set' of undefined #768 — committed to Barkole/simplewebspider-nodejs by deleted user 4 years ago
- Disable .Package:Nexe due to https://github.com/nexe/nexe/issues/768 - TypeError: Cannot read property 'set' of undefined #768 — committed to Barkole/simplewebspider-nodejs by deleted user 4 years ago
- Remove nexe due to https://github.com/nexe/nexe/issues/768 - TypeError: Cannot read property 'set' of undefined #768 — committed to Barkole/simplewebspider-nodejs by deleted user 4 years ago
force build with older version of node add this -t windows-x64-12.16.3
@LoLei downgrade to node v12.16.3 solved this issue
Same problem with
Ahh Sorry, yeah, that option is aggressive.
Not if you need patches (as far as I know). If you just delete the resource (node binary) and use
-j<CORES>inmakeits usually pretty quick