You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like Travis CI build is failing. I have seen a couple of pull requests where build failed for the same error as below:
`1.26s$ npm test
moment-timezone@0.5.17 test /home/travis/build/moment/moment-timezone
grunt
/home/travis/build/moment/moment-timezone/node_modules/grunt/node_modules/grunt-legacy-log/node_modules/grunt-legacy-log-utils/node_modules/chalk/index.js:2
const escapeStringRegexp = require('escape-string-regexp');
^^^^^
SyntaxError: Use of const in strict mode.`
Following is the link to my PR where the build failed: Travis build
Can someone take a look and help me with this?
The text was updated successfully, but these errors were encountered:
Hi @ellenaua - Actually it's not me. It seems grunt uses npm package "chalk" which uses const instead of var and that is causing the build to fail.
/home/travis/build/moment/moment-timezone/node_modules/grunt/node_modules/grunt-legacy-log/node_modules/grunt-legacy-log-utils/node_modules/chalk/index.js:2 const escapeStringRegexp = require('escape-string-regexp'); ^^^^^ SyntaxError: Use of const in strict mode.
The following PR and its corresponding build also had the same issue:
It looks like Travis CI build is failing. I have seen a couple of pull requests where build failed for the same error as below:
`1.26s$ npm test
Following is the link to my PR where the build failed:
Travis build
Can someone take a look and help me with this?
The text was updated successfully, but these errors were encountered: