Webpack warning. There is another module with the same name when the case is ignored.

Webpack provides these warnings in the browser console.

enter image description here

I cannot find the module names indicated in the warning in my application. In addition, I looked through all the files in my application if I have a module link with various cases, as indicated in the github problem, for example this and this,. There is no obvious way to notify which module triggers these warnings.

Any ideas for detecting and resolving these warnings?

+6
source share
2 answers

Change the path you enter in the node project,

d: / foo to D: / foo,

check problem here issue

+5
source

In response to the Lin answer link, if you have a command line shortcut using capital C, this problem occurs. I changed my shortcut to lowercase c and then it works.

0
source

All Articles