Skip to content
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

nwb server error: use of const in strict mode #19

Closed
anakinjay opened this issue Dec 8, 2015 · 4 comments
Closed

nwb server error: use of const in strict mode #19

anakinjay opened this issue Dec 8, 2015 · 4 comments

Comments

@anakinjay
Copy link

Followed the quick start, when I get to the nwb serve part I get this error:

nwb: error running serve:

/usr/local/lib/node_modules/nwb/node_modules/qs/lib/index.js:5
const Stringify = require('./stringify');
^^^^^
SyntaxError: Use of const in strict mode.
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/nwb/lib/createWebpackConfig.js:43:11)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/nwb/lib/createServeReactWebpackConfig.js:13:28)
    at Module._compile (module.js:460:26)
@insin
Copy link
Owner

insin commented Dec 8, 2015

Which version of Node.js are you using?

@anakinjay anakinjay changed the title nwb serve error: use of const in strict mode nwb server error: use of const in strict mode Dec 9, 2015
@anakinjay
Copy link
Author

v0.12.0

@anakinjay
Copy link
Author

upgrading to latest node fixed it for me. Sorry, I don't use node haha, my bad.

@insin
Copy link
Owner

insin commented Dec 10, 2015

We currently require Node.js >= 4.0.0 because of qs and I didn't even realise that.

I'll reopen this and add it to the 0.4 milestone since we should call that out - if people want support for earlier versions, we could always drop the qs version if they ask for it.

Just while I'm here, I'm only testing with npm 2 since I use Node 4.2.x. I haven't fgured out a good way to test nwb commands rather than the code they use yet. If we can figure that out, we can run tests with npm 2 and 3 on Travis.

@insin insin reopened this Dec 10, 2015
@insin insin added this to the 0.4 milestone Dec 10, 2015
@insin insin closed this as completed in bdd3658 Dec 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants