question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Case-sensetive folder name breaks on Linux

See original GitHub issue

Hey 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: screen shot 2016-01-26 at 11 10 53 am

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:closed
  • Created 8 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
benjiecommented, Jan 26, 2016

Try:

git config core.ignorecase false

it may help detect these types of issues earlier. I’ve found it’s slightly weird, but definitely better than nothing!

0reactions
alexander-danielcommented, Feb 12, 2016

@ghostCoder Can confirm it’s working for me with 1.3.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

unix - Linux Both Case Sensitive AND Case Insensitive ...
I'm using Ubuntu 10 and I'm quickly finding out that it's case sensitive when it's inconvenient for it to be so (like when...
Read more >
Git is case-sensitive and your filesystem may not be
Here's our themes folder structure as seen on GitHub.com. Case insenstive folder names. But when we clone it on Mac or Windows, we...
Read more >
Using the Linux kernel's Case-insensitive feature in Ext4
Why Case-insensitive in the kernel? ... A file name is a text string used to uniquely identify a file (in this context, "directory"...
Read more >
Case sensitive file names in Linux and not in Windows
So in order to summarize: 1) the production server is linux. 2) the working computer is windows. 3) windows handles files as non...
Read more >
File Name Case Sensitivity - Future Perfect
We made the Linux version case insensitive by scanning the directory for a matching file name — ignoring case — if we tried...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found