-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require is not case insensitive on linux but is on windows #14019
Comments
This is related to the underlying file system, not Node itself. |
This is another reason why the developer should venture to minimize the difference in environments between development and production. There are a lot more platform-dependent quirks, both related to the file system and not, that could be hard to foretell. |
Yep, this is working as intended. |
Okay, would there be anyway for this to log some sort of warning for file systems that allow this sort of insensitivity? |
name all your files lowercase, the same problem happens with OSX / MacOS. When would you want this warning? For every file access for every file on Windows and MacOS? :) |
Sure, I do try to do that. No only an access when the case insensitivity comes into play |
So… every file access for every file on Windows and macOS? :D |
@Nokel81 just for clarity - every time you access a file, case sensitivity/insensitivity will come into play, so you would get thousands of warnings. your typical program is accessing thousands, if not millions, of files per second :) |
Answered, closing. |
|
Version: 6.10.4
Platform: Windows 10 64
I had a file at the following folder location:
.../gameSignups/create.js
and it windows I was able to (it didn't fail so I missed the typo) call
require(".../gameSignUps/create");
however this failed with amodule not found
when I moved to over to the production linux enviroment.The text was updated successfully, but these errors were encountered: