Case-sensetive folder name breaks on Linux
See original GitHub issueHey again!
I’m running into a really odd issue.
v1.3.5
I can see that the lib/components/sketch
here has 'sketch'
as lower-case:
https://github.com/casesandberg/react-color/tree/master/lib/components
And the import of that component is made with lower-case: https://github.com/casesandberg/react-color/blob/master/lib/components/SketchPicker.js#L35
However! When npm
installing (npm i react-color@1.3.5
), I noticed that the folder has an uppercase first letter. This won’t cause any problems on OSX, however Linux is case-sensitive, so we get the following when trying to build/bundle on our CI servers (running Ubuntu):
Error: Cannot find module './sketch/Sketch' from '/myproject/node_modules/react-color/lib/components'
It seems to be searching for the lower-case, but I SSH’d into the test-box and saw this:
So perhaps you’re publishing from your local repo and the directory name has an uppercase? Not too sure how there could be sync issues between the github repo and the npm package, as cloning this repo works just fine and the folders are all appropriately-cased.
It is only when you npm i react-color
that this issue occurs.
Any ideas? Thanks for your time!
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (2 by maintainers)
Top GitHub Comments
Try:
it may help detect these types of issues earlier. I’ve found it’s slightly weird, but definitely better than nothing!
@ghostCoder Can confirm it’s working for me with
1.3.6