score:1

Accepted answer

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.

score:1

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({...})
})

Related Query

More Query from same tag