Chartjs-JSX element type 'Line' is not a constructor function for JSX elements 3 October 2023 by thecoderscamp.com 2👍 The Line component is exported by react-chartjs-2 as a named export. You need to import it by its name: import {Line} from 'react-chartjs-2'; Live Example: Chartjs-Custom Tailwind CSS colors in chart.js Chartjs-Chartjs cutoutPercentage and tooltips does not works in nextjs Source:stackexchange.com