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

后端 未结 23 1080
佛祖请我去吃肉
佛祖请我去吃肉 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:46

    // waring
    import Test from './TestHome'
    // you can rename your file with camel-case and import
    import Test from './test-home'
    // or you should fix the path 
    import Test from '@/views/TestHome'
    

    Hope the two ways will solve your problem。

提交回复
热议问题