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
Context: I tried to start working on #2286, following Contribution guideline. I have only minimal experience with npm/node but I am sure that my installation meets the recommended "node.js v6.x" version.
npm start (and specifically npm run start-test_dashboard) fails.
In short the regular expression in the following line:
date.toString().match(/\(([A-Za-z\s\u4E00-\u9FCC].*)\)/)[1] // fix Chinese datetime string error. #1630
fails on 2018-01-27T15:15:48.956Z which is represented as Sat Jan 27 2018 14:15:48 GMT-0100 (-01) and after matching returns null.
krassowski:~/projects/plotly.js$npmstart>plotly.js@1.33.1start/home/krassowski/projects/plotly.js>npmrunstart-test_dashboard>plotly.js@1.33.1start-test_dashboard/home/krassowski/projects/plotly.js>nodedevtools/test_dashboard/server.js***Buildingthefirstbundle,thisshouldtake~10seconds***/home/krassowski/projects/plotly.js/tasks/util/common.js:48date.toString().match(/\(([A-Za-z\s\u4E00-\u9FCC].*)\)/)[1]// fix Chinese datetime string error. #1630^TypeError: Cannotreadproperty'1'ofnullatObject.exports.formatTime(/home/krassowski/projects/plotly.js/tasks/util/common.js:48:65)atBrowserify.<anonymous>(/home/krassowski/projects/plotly.js/tasks/util/watchified_bundle.js:78:36)atemitOne(events.js:96:13)atBrowserify.emit(events.js:188:7)atDestroyableTransform.end[as_flush][....]npmERR!Linux4.13.0-25-genericnpmERR!argv"/usr/bin/node""/usr/bin/npm""start"npmERR!nodev6.11.4npmERR!npmv3.5.2npmERR!codeELIFECYCLEnpmERR!plotly.js@1.33.1start: `npm run start-test_dashboard`npmERR!Exitstatus1
The text was updated successfully, but these errors were encountered:
krassowski
changed the title
'npm start' fails on ;Chinese datetime string error fix' in tasks/util/common.js:49
'npm start' fails on 'Chinese datetime string error fix' in tasks/util/common.js:49
Jan 27, 2018
Context: I tried to start working on #2286, following Contribution guideline. I have only minimal experience with npm/node but I am sure that my installation meets the recommended "node.js v6.x" version.
Related to #1630.
npm start
(and specificallynpm run start-test_dashboard
) fails.In short the regular expression in the following line:
fails on
2018-01-27T15:15:48.956Z
which is represented asSat Jan 27 2018 14:15:48 GMT-0100 (-01)
and after matching returnsnull
.The text was updated successfully, but these errors were encountered: