2👍
Chart.js v3 is treeshakable so the way you use it has changed, see documentation on how to use all the ways (https://www.chartjs.org/docs/latest/getting-started/integration.html#bundlers-webpack-rollup-etc),
Most easy way like you are used to you have to make your import statement like this: import Chart from 'chart.js/auto';
- [Chartjs]-Updating Chart.js with JSON, cannot read property 'length' of undefined
- [Chartjs]-Chart JS – Grid colors and gradient fill not showing
Source:stackexchange.com