Practical Problem: case-mismatch in package/file require statements #11889
Labels
feature request
Issues that request new features to be added to Node.js.
module
Issues and PRs related to the module subsystem.
I noticed recently that I can write
require('myPackage')
andrequire('mypackage')
interchangeably on my OS because the OS is case-insensitive. This is problematic because when I try to use the same project, package on a OS that case-sensitive the imports don't seem to work. This seems to be an issue that could occur with any package and any file. Since its a systemic issue I think it would be good if node.js would try to check if the case of the file/folder actually matches the case entered and show an error message or deprecation warning that can be turned off via a flag.The text was updated successfully, but these errors were encountered: