0👍
I suggest you install chart.js via npm
npm install chart.js --save
and then import it like that:
// ES6
import Chart from 'chart.js';
I’m assuming that you’re using some kind of bundler like webpack to make code above works. If not you have to include chart.min.js in your index file before baseChart.js
Source:stackexchange.com