Skip to content

Unable to render Chart v3 and above in React v17.0.2 #9143

Answered by kurkle
brendonco asked this question in Q&A
Discussion options

You must be logged in to vote

Because of treeshaking support, the exports have changed.

See the documentation on how to integrate:
https://www.chartjs.org/docs/latest/getting-started/integration.html#bundlers-webpack-rollup-etc

And your sandbox working with v3:
https://codesandbox.io/s/delicate-brook-mtnne?file=/src/MixedChart.js

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kurkle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #9142 on May 21, 2021 05:51.