1๐
โ
If you look in app.js, is it wrapped in a function? It sounds like itโs not part of the global namespace, despite being present in app.js.
2๐
If youโre using es6 you might need to change the way you require it.
from the docs:
http://www.chartjs.org/docs/
// Using CommonJS
var Chart = require('chart.js')
var myChart = new Chart({...})
// ES6
import Chart from 'chart.js'
let myChart = new Chart({...})
// Using requirejs
require(['path/to/Chartjs'], function(Chart){
var myChart = new Chart({...})
})
Source:stackexchange.com