[Chartjs]-"export 'default' (imported as 'Chart') was not found in 'chart.js'

17👍

Guess you are trying to import chart.js like this import Chart from 'chart.js', since chart.js v3 chart.js is treeshakable so you will have to import and register all the components you want to use or import and register everything with the auto import like this: import Chart from 'chart.js/auto'

Docs: https://www.chartjs.org/docs/master/getting-started/integration.html#bundlers-webpack-rollup-etc

5👍

For me, I just had to downgrade from chart.js@3.x to chart.js@2.9.4

Leave a comment