chart js bar is not a registered controller. I'm trying to migrate chart.js from 2.9.3 to 3.3.0 and even after applying the the changes. Import { chart } from 'chart.js/auto'.

chart js bar is not a registered controller Import { chart } from 'chart.js/auto'. You get an error because you need to include chart from chart.js/auto, and not from chart.js: Import { chart } from 'chart.js/auto'.









The Examples Below Show How To Load Chart.js In.
Extending or replacing an existing controller type is easy. You get an error because you need to include chart from chart.js/auto, and not from chart.js: Import { chart } from 'chart.js/auto'.
This Is My Code Const { Chart, Doughnutcontroller, Arcelement } = Require('Chart.js');
Import { chart } from 'chart.js/auto'. You get an error because you need to include chart from chart.js/auto, and not from chart.js: Generally speaking for a chart you need its controller so linecontroller for line chart, piecontroller for pie chart etc.
Chart.js Can Be Integrated With Plain Javascript Or With Different Module Loaders.
I'm trying to migrate chart.js from 2.9.3 to 3.3.0 and even after applying the the changes.