-
Notifications
You must be signed in to change notification settings - Fork 373
Closed
Description
Hey guys,
First of all, thanks for making this super helpful library!
I am currently working on a NextJS and have implemented ChartJS v4.0.1. All works well, but when I want to install the annotation plugin and follow the steps of https://www.chartjs.org/chartjs-plugin-annotation/latest/guide/integration.html I get the following error:

My React component is: (only relevant is shown)
import {useEffect, useState} from "react";
import {BarElement, CategoryScale, Chart as ChartJS, Legend, LinearScale, Title, Tooltip} from 'chart.js';
import Annotation from 'chartjs-plugin-annotation';
import {Bar} from 'react-chartjs-2';
ChartJS.register(
CategoryScale,
LinearScale,
BarElement,
Title,
Tooltip,
Legend,
Annotation,
);
.........
Do you guys have any idea how to solve this? Is it an issue because of ChartJS v4?
Thanks a lot!
Cheers,
Ferre
TraceLTRC, jimmyhchen, dmanaster, DiegoDiamond and mkohei