[Chartjs]-React-chart-js-2 in combination with TypeScript for LineCharts: Uncaught Error: "point" is not a registered element

21👍

This is because chart.js v3 is treeshakable so you will need to register everyhting you are using. In your case you dont have the pointElement registered. You can do that like this:

import {Chart, PointElement} from 'chart.js';

Chart.register(PointElement);

You can also choose to just import everything so you dont have to manually register it like so:

import 'chart.js/auto'

Leave a comment