Webpack: “there are multiple modules with names that only differ in casing” but modules referenced are identical

后端 未结 23 1053
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 02:08

I\'m using webpack 3.8.1 and am receiving several instances of the following build warning:

WARNING in ./src/Components/NavBar/MainMenuItemMobile.js
There a         


        
23条回答
  •  萌比男神i
    2020-11-30 02:35

    OMG I finally found the solution to my problem.

    I am using the VS Code Terminal and it was using desktop instead of Desktop in the path of the prompt:

    C:\Users\Hans\desktop\NODE JS\mysite>
    

    To fix it, I just had to close the project folder and reopen it:

    File -> Close Folder
    File -> Open Folder
    

    And now the VS Code Terminal is using the correct prompt path.

提交回复
热议问题