0👍
✅
The answer has been post in the comments :
You’re still importing BarElement. Try to import the following items instead and also register them: import { Chart as ChartJS, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip, Legend } from ‘chart.js’
It worked
Source:stackexchange.com