Replies: 1 comment
-
There is no /node-modules when it's in your browser so that won't work, you need to use a cdn or a build tool that includes chart.js on build but you can't use a header script tag to node modules |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to use Chart.js in my Django project , when I Use NPM package it's not working but when I use CDN It work Perfectly
chart.js version 3.9.1
here is my index.html file on my project
my console error in browser is :
(index):17 Uncaught ReferenceError: Chart is not defined at (index):17:17
I tried to use chart.min.js in my script but not working. I also Try previous version of charj.js but still not working. I also copy code on CDN and put it locally on project but still not working.
Beta Was this translation helpful? Give feedback.
All reactions