"SyntaxError: Unexpected token )" on Node v6.0.0
See original GitHub issue/home/oles/project/node_modules/nodal/core/required/model.js:1016
callback = callback || () => {};
^
SyntaxError: Unexpected token )
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:511:25)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:456:32)
at tryModuleLoad (module.js:415:12)
at Function.Module._load (module.js:407:3)
at Module.require (module.js:466:17)
at require (internal/module.js:20:19)
at /home/oles/project/node_modules/nodal/core/required/api.js:5:17
at Object.<anonymous> (/home/oles/project/node_modules/nodal/core/required/api.js:143:3)
Happens when running “node cluster.js” - and started happening when I updated to Node 6 😅
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Node.js - SyntaxError: Unexpected token import while running ...
I am getting this error, How can I make it run? SyntaxError: Unexpected token import. javascript · node.js · ecmascript-6.
Read more >node-gyp configure uncaught exception · Issue #1949 - GitHub
... using node-gyp@6.0.0 gyp info using node@4.2.6 | linux | x64 gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack SyntaxError: Unexpected token .
Read more >SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >Node.js v19.3.0 Documentation
Native abstractions for Node.js; Node-API; Addon examples ... Class: ReferenceError; Class: SyntaxError; Class: SystemError ... parseArgs tokens.
Read more >url.port = url.port ?? "3000"; ^ syntaxerror: unexpected token '?'
Node.js 12 applications failing by Optional chaining -. Azureossd.github.io. Sep 6, 2022 ... ... url.port = url.port ?? "3000"; ^ SyntaxError: Unexpected ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not a problem, rolled back to v5.11.0 - and it worked again 😄
Love your work on Nodal ❤️
Indeed it can, working as it should at v6.1.0