Chartjs-"Cannot read propery "defaults" of undefined" error while using react-chartjs-2

2👍

The react wrapper is not updated yet to support chartjs version 3 so you will have to downgrade to version 2.9.4.

If you change "chart.js": "^3.1.0", to "chart.js": "^2.9.4", and run your install command again it will work

Leave a comment