Need consistent case-name for Chart/chart.js on NPM and Bower
See original GitHub issuePlease see: https://github.com/jtblin/angular-chart.js/pull/226
In short, Chart.js uses different “case” names for its library in Bower (“Chart.js”) vs NPM (“chart.js”).
This causes issues with other libraries using it as a dependency and on file systems (e.g. Linux) that are case-sensitive.
For example, when using Browserify
on a Linux OS:
require("chart.js")
will work when using NPM-based packagesrequire("Chart.js")
will FAIL when using NPM-based packagesrequire("chart.js")
will FAIL when using Bower-based packagesrequire("Chart.js")
will work when using Bower-based packages
On OS systems where file case doesn’t matter (e.g. Mac OSX and I believe Windows), this will never surface as an issue as both OSes treat: Chart.js === chart.js
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
How to use Chart.js
Install chart.js in the command prompt using npm. Chart.js Bower. How to install Chart.js with bower. bower install chart.
Read more >Integration
Chart.js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different ...
Read more >Cytoscape.js
Introduction. Factsheet. A fully featured graph library written in pure JS; Permissive open source license (MIT) for the core Cytoscape.js ...
Read more >javascript - chart.js load totally new data
These will add/remove a single segment to/from the chart instance. So if you want to load completely new data, just loop a chart...
Read more >How to use Chart.js - Morioh
Built using JavaScript, Chart.js requires the use of the HTML element and a ... We will cover the following topics: ... Install Chart.js...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We got it to work with
bower install chartjs --save
After clearing out our caches, it put"chart.js": "chartjs#^2.3.0",
in our bower.json file. but that could be unique to our Artifiactory system.Should you rename it - please also stop calling it
.js
as RequireJs handles.js
files differently than modules.