0👍
You are trying to use v3 syntax while using v2, to register plugins in V2 you need to type it like so:
import AnnotationPlugin from 'chartjs-plugin-annotation';
Chart.plugins.register(AnnotationPlugin)
Source:stackexchange.com
0👍
You are trying to use v3 syntax while using v2, to register plugins in V2 you need to type it like so:
import AnnotationPlugin from 'chartjs-plugin-annotation';
Chart.plugins.register(AnnotationPlugin)