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

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

    I had the same problem and then found out that my vue file was named in lowercase like this: event.vue. To solve it I renamed it to Event.vue and updated where I was importing it and then it worked. For the import statement it looked like this:

    Before

    import Event from '@/components/NewsAndEvents/event' After renaming the file it must look like this:

    import Event from '@/components/NewsAndEvents/Event'

提交回复
热议问题