Chartjs-Vue Chart.JS with Line component : Uncaught Error: class does not have id: [object Object]

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

Leave a comment