Uncaught Exception: SyntaxError: Invalid or unexpected token at Timeout._onTimeout at listOnTimeout (internal/timers.js:531:17) at processTimers (internal/timers.js:475:7)
I’m using Electron, and have a file that requires a
.jsc file which requires a
.jsc file. I did use the same Electron to compile these files to bytecode. And the app was working fine for a minute, until this error randomly popped up. And everytime I clicked
ok it popped up again. I had to use Task Manager to kill the process. This was an executable created with
I probably won’t be able to get a minimum example but maybe this will be useful for future reference.
- Created 4 years ago
- Comments:13 (1 by maintainers)
Top GitHub Comments
You have to use the exact same executable to compile and to run
.jsc. This is how v8 caching system work. Any other behavior won’t work, even if you use the exact same [numeric] version of Node and v8 itself.
You probably need to alter your app to say:
The first line is necessary so that the Node.js module loader can load JSC files - normally it can’t.