Accepted answer

which version of chart.js are you running because if you reinstalled it its a high chance you are running version 3 of the lib which is at the moment still not compatible with the wrapper so you will have to install the latest version 2 release of chart.js (2.9.4)



npm uninstall react-chartjs


npm i react-chartjs-2@2.9.0


yes, thanks now this solution also work for me,

i was using chart.js with a version of >3.x

then i have downgrade the version to 2.9.4 then it worked for me.

yarn command
yarn add react-chartjs-2
yarn add chart.js@2.9.4

Related Query

More Query from same tag