-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meteor Error: Unexpected token: const { pause } = require("./debug.js"); #9275
Comments
This is probably due to the upgrade to nodejs8 (mentioned in the release blog post). So you first need to upgrade to nodejs8 before running >= 0.60.x. So this issue is probably obsolete and you can close it, as soon as you have verified that it works with nodejs8 (which will most probably be the case). Cheers |
I have the same issue. Though, I have upgraded to NodeJS 8.9.3.
|
@therealgill Are you sure your RC instance is started with the command In usual setups, the output of Cheers |
Right you are! The startup script was calling Edit: The Node version being 4.8.4 was a result of the installation documentation: https://rocket.chat/docs/installation/manual-installation/ubuntu/ . Specifically, the command: |
Description:
Server Setup Information:
Steps to Reproduce:
node main.js
/opt/Rocket.Chat/programs/server/boot.js:50
const { pause } = require("./debug.js");
^
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/opt/Rocket.Chat/main.js:4:1)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
The text was updated successfully, but these errors were encountered: