score: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)

Related Query

More Query from same tag