Chartjs-Javascript : import produces a syntax error

0👍

Ok so the fix was

  • 1) to remove the ‘.js’ at the end of the import. It now looks like this : import Chart from './Chart.min';

  • 2) get the 0.6.6 minified version of the plugin, instead of looking inside the /src folder !

Leave a comment