question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
olescommented, May 3, 2016

Not a problem, rolled back to v5.11.0 - and it worked again 😄

Love your work on Nodal ❤️

0reactions
olescommented, May 7, 2016

Indeed it can, working as it should at v6.1.0

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found