score:0

do this and it should work import chart from 'chart.js/auto';

https://www.chartjs.org/docs/latest/getting-started/integration.html

score:0

on laravel mix use:

window.chart = require('chart.js/auto').default;

score:5

i think that chart.js you're using has an error
try this one:

<script src="https://cdnjs.cloudflare.com/ajax/libs/chart.js/2.4.0/chart.min.js"></script>


Related Query

More Query from same tag