How to fix: There are multiple modules with names that only differ in casing?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
3.2k views
When you compile you 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\ode_modules\\babel-loader\\lib\\index.js!c:\\frontend\ode_modules\\eslint-loader\\index.js!c:\\frontend\\src\\User\\SignIn\\Index.js
Used by 29 module(s), i. e.
c:\\frontend\ode_modules\\babel-loader\\lib\\index.js!c:\\frontend\ode_modules\\eslint-loader\\index.js!c:\\frontend\\src\\Header\\Index.js

* c:\\frontend\ode_modules\\babel-loader\\lib\\index.js!c:\\frontend\ode_modules\\eslint-loader\\index.js!c:\\frontend\\src\\User\\SignIn\\index.js
Used by 2 module(s), i. e.
c:\\frontend\ode_modules\\babel-loader\\lib\\index.js!c:\\frontend\ode_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 understand is due to the fact that some files index, other Index. How to fix this error without renaming the files?
by | 3.2k views

1 Answer

0 like 0 dislike
1. Rename all the index files inindex.jsin the lower register.
2. Keep case in paths when importing.
by

Related questions

0 like 0 dislike
1 answer
asked May 22, 2019 by dalv_happy
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,252 users