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

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

    I had the same issue in angular 6 project.

    This issue occurred because while importing component in the module like

    import { ManageExamComponent } from './manage-Exam.component'; 
    

    I have written like manage-Exam where Exam is in capital letter and webpack understand small letter.

    As soon as i used

    import { ManageExamComponent } from './manage-exam.component'; 
    

    used exam in small and issue resolved.

提交回复
热议问题