-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
ReferenceError: moment is not defined #5236
Comments
@volkerp do you mean:
If a. please provide way more details and a jsfiddle that reproduces your issue (as requested in our issue template displayed when creating an issue). If b. the moment version embedded in <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.20.1/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script> |
Test case that shows the error: https://codepen.io/anon/pen/odWRvZ Copied from http://www.chartjs.org/samples/latest/scales/time/financial.html |
It'd be nice to have this in the installation docs. |
@mestaritonttu that's case b, so you need to import @gdvalderrama agree, can you please submit a PR with that update in the "Bundled Build" section? @etimberg am I correct about case |
I'm closing this ticket since we are not going to expose the internal |
@simonbrunel sure, here's the PR: #5528 |
moment.js functions do not work in current releases Chart.bundle.js and Chart.bundle.min.js.
moment.js has to be manually imported.
Regards
The text was updated successfully, but these errors were encountered: