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

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

    This is usually a result of a minuscule typo.

    For instance, if you are importing your modules like import Vue from 'vue', import Vuex from 'vuex'.

    Go through your files and check where you used from 'Vue' or from 'Vuex' - make sure to use the exact same capitals (uppercase letters) as in your import statements.

    The error descriptions should have been written more clearly, but what I explained has been the cause of my problem each time for this error on webpack commands.

提交回复
热议问题