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

Error: Use of const in strict mode #93

Closed
mavlesreennap opened this issue Jul 21, 2017 · 1 comment
Closed

Error: Use of const in strict mode #93

mavlesreennap opened this issue Jul 21, 2017 · 1 comment

Comments

@mavlesreennap
Copy link

While doing the gulp build along with npm build, getting the error " SyntaxError: Use of const in strict mode."

run-sequence version used --> "run-sequence": "~1.1"

Below is the error stack:

[INFO] --- frontend-maven-plugin:1.4:gulp (gulp build) @ proj ---
[INFO] Running 'gulp ' in /Users/ps/Documents/gitlab/proj/
[ERROR]
[ERROR] /Users/ps/Documents/gitlab/proj/node_modules/run-sequence/node_modules/chalk/index.js:2
[ERROR] const escapeStringRegexp = require('escape-string-regexp');
[ERROR] ^^^^^
[ERROR] SyntaxError: Use of const in strict mode.
[ERROR] at Module._compile (module.js:439:25)
[ERROR] at Object.Module._extensions..js (module.js:474:10)
[ERROR] at Module.load (module.js:356:32)
[ERROR] at Function.Module._load (module.js:312:12)
[ERROR] at Module.require (module.js:364:17)
[ERROR] at require (module.js:380:17)
[ERROR] at Object. (/Users/ps/Documents/gitlab/proj/node_modules/run-sequence/index.js:5:14)
[ERROR] at Module._compile (module.js:456:26)
[ERROR] at Object.Module._extensions..js (module.js:474:10)
[ERROR] at Module.load (module.js:356:32)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Please help to resolve this issue.

@OverZealous
Copy link
Owner

This was fixed by #89, just upgrade to v2.0

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