score:50

Accepted answer

chart.js has a new release version with 3.0.x. i think, vue-chartjs does not support it yet.

you can downgrade chart.js and try again.

chartjs [3.0.1 - published 2 days ago] https://www.npmjs.com/package/chart.js?activetab=readme

and there is a vue-chartjs issue about 22 hours ago. https://github.com/apertureless/vue-chartjs/issues/695

score:5

yarn add vue-chartjs chart.js@2.9.4

if you are using yarn

score:11

maybe its a bit late but i have to give the answer,

what you need is to change the version of both libraries

npm install chart.js@2.7.1 vue-chartjs@3.4.0 --save

it works fine in vue2

score:39

chart.js version above 3.0.0 is not compatible, you need to downgrade chart.js npm install chart.js@2.9.4

this has solved my issue


Related Query

More Query from same tag