Replies: 2 comments
-
The quick answer is |
Beta Was this translation helpful? Give feedback.
0 replies
-
Just after creating the issue i tried one last thing: import { Chart } from "chart.js"; And this is the correct answer. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
Im trying to upgrade project wit 2.x Chart.js for the past X hours and im close to giving up. Does anyone have a working example with v3 usign es modules (import Chart from..)?
Errors are the same as in this thread from couple years back: #5179
The same code works for v2, breaks for v3.
v3 is just throwing:
(notice, there is
Chart
on the list, so this is suspicious)when i import like documentation says i should import:
I already tried importing chart.js/dist/chart.esm.js
chart.js/auto.esm.js
And couple other... i basically tried everything i could find on the internet and in the node_modules/
Beta Was this translation helpful? Give feedback.
All reactions