1๐
โ
As stated in the big red warning on the getting started page you need to register the plugin: https://www.chartjs.org/chartjs-plugin-annotation/guide/#getting-started
Instead of:
import 'chartjs-plugin-annotation';
Import and register the plugin like so:
import annotationPlugin from 'chartjs-plugin-annotation';
Chart.register(annotationPlugin);
Source: https://www.chartjs.org/chartjs-plugin-annotation/guide/integration.html#bundlers-webpack-rollup-etc
Source:stackexchange.com