Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

can't find module of moment in Chart.js: "2.0.0-beta2",

Open padmarao123 opened this issue 10 years ago • 2 comments

i am using beta2 version .after build my error in console can't find module moment.give me any suggestion without dependence of momentjs

padmarao123 avatar Mar 09 '16 09:03 padmarao123

That shouldn't be an error, it should be a warning and you don't need anything to fix it. It's purely for if you're trying to create a time series chart in which case you need to download moment.js but if you're not doing a time series then you don't need to do anything. If your chart isn't displaying then the problem is probably elsewhere.

Also moment isn't a module, it's the library itself. I don't know what your message is saying but in chrome it says "Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at http://momentjs.com/" for me

dibsyjr1 avatar Mar 09 '16 11:03 dibsyjr1

Fixed in #2145

etimberg avatar Mar 17 '16 00:03 etimberg