-
Notifications
You must be signed in to change notification settings - Fork 934
Travis ci failing - SyntaxError: Use of const in strict mode. #857
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
Comments
Hey @vojtechruz, what node version are you running? From your travis logs it looks like v0.10.48:
Commitlint only supports above |
Hi, thanks for the reply. I suspected it is the node version, so Included this in my Travis to use the latest node:
It didn't work. Now I investigated again and discovered that the correct syntax is:
With this, it works. In the documentation of commitlint CI integration, the Travis config does not mention node version setup. Maybe the docs could be updated to reflect this for the new users to save them the pain of investigation? |
If you want to add extra info to the docs we're happy to receive a PR. |
Created PR with node version defined so the build does not break. |
Thanks, please create a PR on our side. |
Sorry, now it should be ok. |
Closed by #871 |
I followed the tutorial for Travis CI configuration here: https://commitlint.js.org/#/guides-ci-setup
After creating a PR here: vojtechruz/commitlint-example#2
My Travis build failed with the following error:
My .travis.yml:
My commitlint config file:
My dependencies:
Full log:
log.txt
The text was updated successfully, but these errors were encountered: