angular-chart.js icon indicating copy to clipboard operation
angular-chart.js copied to clipboard

require('Chart.js') fails in case-sensitive file systems

Open toostn opened this issue 11 years ago • 1 comments

In commit a72a515335c276d0f0e83056d8a9a172b77f9af3, the chart.js depedency has been changed to use uppercase C.

angular-chart.js:5 module.exports = factory(require('angular'), require('Chart.js'));

However, the module name for chart.js uses a lowercase c.

This change makes compilation fail when imported via e.g. browserify on case-sensitive file systems.

Maybe you've mistaken the module name for the actual .js file it exports?

toostn avatar Oct 28 '15 09:10 toostn

@toostn the change was made by @soladk because it was apparently needed for bower. See https://github.com/jtblin/angular-chart.js/pull/226 for explanation. I will add a try/catch block and try each spelling...

jtblin avatar Nov 10 '15 12:11 jtblin