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

'use strict' and const keywork in the same file #138

Closed
Max-Kolodezniy opened this issue Nov 12, 2015 · 1 comment
Closed

'use strict' and const keywork in the same file #138

Max-Kolodezniy opened this issue Nov 12, 2015 · 1 comment

Comments

@Max-Kolodezniy
Copy link

I'm using node.js twitter-node-client module which uses qs (https://www.npmjs.com/package/qs)

Now I'm getting errors for any of my app calls with error mesage provided below

[SyntaxError: /usr/local/lib/node_modules/socialedge-twitter/node_modules/twitter-node-client/node_modules/qs/lib/index.js:5
const Stringify = require('./stringify');
^^^^^
Use of const in strict mode.]

As I know const (the same as let etc) are part of ECMAScript Harmony spec and I have to launch node with option --harmony as described here: http://stackoverflow.com/questions/22603078/syntaxerror-use-of-const-in-strict-mode

Unfortunately, I haven't access to the Node.js runtime or target system CLI - it is AWS Lambda which doesn't have any abilities to change this behavior.

@Max-Kolodezniy
Copy link
Author

Sorry boring you, I had very old node version installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants