Answer the question
In order to leave comments, you need to log in
Fix: There are multiple modules with names that only differ in casing?
When compiling, I get a warning:
WARNING in ./src/Interface/User/SignIn/Index.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* c:\frontend\node_modules\babel-loader\lib\index.js!c:\frontend\node_modules\eslint-loader\index.js!c:\frontend\src\User\SignIn\Index .js
Used by 29 module(s), ie
c:\frontend\node_modules\babel-loader\lib\index.js!c:\frontend\node_modules\eslint-loader\index.js!c:\frontend\src\ Header\Index.js
* c:\frontend\node_modules\babel-loader\lib\index.js!c:\frontend\node_modules\eslint-loader\index.js!c:\frontend\src\User\SignIn\index.js
Used by 2 module(s), ie
c:\frontend\node_modules\babel-loader\lib\index.js!c:\frontend\node_modules\eslint-loader\index.js!c:\frontend\src\Forms\CreateProject\Index .js
@ ./src/Interface/User/SignIn/Index.js
@ ./src/Interface/Header/Index.js
@ ./src/Pages/App/Index.js
@ ./src/index.js
I do understood - this is due to the fact that some files are index, others are Index. How to fix this error without renaming the files?
Answer the question
In order to leave comments, you need to log in
1. Rename all index files to index.js
lowercase.
2. Keep case in paths when importing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question