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

后端 未结 23 1084
佛祖请我去吃肉
佛祖请我去吃肉 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条回答
  •  天涯浪人
    2020-11-30 02:50

    It happened to me on angular 6. It's capital and small letter misusage error which your ide or text editor may ignore. I USED

    import { PayComponent }      from './payment/pay/pay.component';
    

    INSTEAD OF

    import { PayComponent }      from './Payment/pay/pay.component';
    

    IMAGINE JUST "P" and "p". Goodluck.

提交回复
热议问题