0
When I give one import Chart from 'chart.js'
this error appears on the terminal:
"export 'default' (imported as 'Chart') was not found in 'chart.js'
And those bugs on the console:
Error in mounted hook: "TypeError: chart_js__WEBPACK_IMPORTED_MODULE_0__.default is not a constructor"
TypeError: chart_js__WEBPACK_IMPORTED_MODULE_0__.default is not a constructor
I am using Vue.js 2 and the versions of Chart.js that give this error are 3.1.1 and 3.0.2, from version 2.9.4 it works normal. I tried to use the Vue-chartjs but it also makes this same import of Chart.js and ends up resulting in the same error.