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










21















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 are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/MainMenuItemMobile.js
Used by 1 module(s), i. e.
/Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/ConstructedMainMenuItems.js
* /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/MainMenuItemMobile.js
Used by 1 module(s), i. e.
/Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/ConstructedMainMenuItems.js
.....
(webpack)-hot-middleware/client.js ./src/index.js


What's confusing is that the 'two' files referenced are just one file—there are no two files in the directory whose names differ only in case.



I've also noticed that my hot reloader often doesn't pick up changes to a file if it is affected by these warnings.



What could be causing this issue?










share|improve this question


























    21















    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 are multiple modules with names that only differ in casing.
    This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
    Use equal casing. Compare these module identifiers:
    * /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/MainMenuItemMobile.js
    Used by 1 module(s), i. e.
    /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/ConstructedMainMenuItems.js
    * /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/MainMenuItemMobile.js
    Used by 1 module(s), i. e.
    /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/ConstructedMainMenuItems.js
    .....
    (webpack)-hot-middleware/client.js ./src/index.js


    What's confusing is that the 'two' files referenced are just one file—there are no two files in the directory whose names differ only in case.



    I've also noticed that my hot reloader often doesn't pick up changes to a file if it is affected by these warnings.



    What could be causing this issue?










    share|improve this question
























      21












      21








      21


      1






      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 are multiple modules with names that only differ in casing.
      This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
      Use equal casing. Compare these module identifiers:
      * /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/MainMenuItemMobile.js
      Used by 1 module(s), i. e.
      /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/ConstructedMainMenuItems.js
      * /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/MainMenuItemMobile.js
      Used by 1 module(s), i. e.
      /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/ConstructedMainMenuItems.js
      .....
      (webpack)-hot-middleware/client.js ./src/index.js


      What's confusing is that the 'two' files referenced are just one file—there are no two files in the directory whose names differ only in case.



      I've also noticed that my hot reloader often doesn't pick up changes to a file if it is affected by these warnings.



      What could be causing this issue?










      share|improve this question














      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 are multiple modules with names that only differ in casing.
      This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
      Use equal casing. Compare these module identifiers:
      * /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/MainMenuItemMobile.js
      Used by 1 module(s), i. e.
      /Users/path/to/babel-loader/lib/index.js!/Users/path/to/NavBar/ConstructedMainMenuItems.js
      * /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/MainMenuItemMobile.js
      Used by 1 module(s), i. e.
      /Users/path/to/babel-loader/lib/index.js!/Users/path/to/Navbar/ConstructedMainMenuItems.js
      .....
      (webpack)-hot-middleware/client.js ./src/index.js


      What's confusing is that the 'two' files referenced are just one file—there are no two files in the directory whose names differ only in case.



      I've also noticed that my hot reloader often doesn't pick up changes to a file if it is affected by these warnings.



      What could be causing this issue?







      webpack webpack-hot-middleware






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 28 '17 at 14:42









      adc17adc17

      594622




      594622






















          7 Answers
          7






          active

          oldest

          votes


















          35














          This is usually a result of a minuscule typo.



          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'



          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.






          share|improve this answer


















          • 2





            You're right, it was the path name, not the module name, and that's what threw me. I had NavBar/MainMenuItemMobile.js—the 'b' in Navbar should have been lowercase.

            – adc17
            Dec 4 '17 at 15:50











          • exacly dude, in my case I used React and trow error when I import: import React, Component from 'React'; to fix just from 'react

            – rflmyk
            May 9 '18 at 1:34






          • 1





            My problem was that in one component I was referencing components/vue.js while in another I was referencing components/Vue.js

            – Dennis
            Aug 5 '18 at 17:48











          • Your comment @ adc17 helped me understand the cryptic output. Read this solution in the WebPack GitHub Wiki and just couldn't make sense of it as everything looked correct. It's amazing how close 'l' looks like 'L' when you have text set very small...hehe.

            – Guy Park
            Aug 18 '18 at 5:19


















          2














          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.






          share|improve this answer






























            1














            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.






            share|improve this answer






























              1














              For others that are facing this issue and tried the suggested fixes with no luck, here is another possible fix.



              Ensure that the path you used in your terminal has the correct capitalization. For example if you're using git bash on Windows and your project has the following path:



              C:MyProjectsproject-X



              If you access it using cd /c/myprojects/project-x (note the lack of capital cases) and then run npm start you might face this problem.



              The solution would be to consider the project path case-sensitive and use it as follows:



              cd /C/MyProjects/project-X






              share|improve this answer






























                0














                I also have this warning, but my problem is that,
                for example, there is the file directory of React project:



                **/src/containers/PageOne/index.js
                **/src/containers/PageTWO/pageOneAction.js

                **/src/containers/PageOne/index.js
                **/src/containers/PageTWO/pageTWOAction.js


                And there will be a similar warning. Because you'd better not use the same file name(such as action.js in those folders) excluding index.js, otherwise this can lead to unexpected behavior when compiling on a file system with other case-semantic.



                To solve this warning, we could do that:



                **/src/containers/PageOne/index.js
                **/src/containers/PageOne/pageOneAction.js

                **/src/containers/PageTWO/index.js
                **/src/containers/PageTWO/pageTWOAction.js


                This is my experience, hope it could help someone.






                share|improve this answer
































                  0














                  I had a similar error but not exactly the same described by other answers. I hope my answer can help someone.



                  I was importing a file in two components (angular 7 project):



                  Component 1:



                  LANGUAGES = require("../../models/LANGUAGES.json");


                  Component 2:



                  LANGUAGES = require("../../models/LANGUAGES.JSON");


                  This is a foolish mistake: the problem here is I'm using two differents requires on the same file with different capital letters (it generated a warning).



                  How to solve the problem ? Use the same model.



                  Component 1:



                  LANGUAGES = require("../../models/LANGUAGES.json");


                  Component 2:



                  LANGUAGES = require("../../models/LANGUAGES.json");


                  OR



                  Component 1:



                  LANGUAGES = require("../../models/LANGUAGES.JSON");


                  Component 2:



                  LANGUAGES = require("../../models/LANGUAGES.JSON");





                  share|improve this answer






























                    0














                    Similar issue, but my problem was packages installed in C:Users<username>AppDataLocalYarn. Deleting that folder and re-adding the global packages I wanted fixed the issue.






                    share|improve this answer






















                      Your Answer






                      StackExchange.ifUsing("editor", function ()
                      StackExchange.using("externalEditor", function ()
                      StackExchange.using("snippets", function ()
                      StackExchange.snippets.init();
                      );
                      );
                      , "code-snippets");

                      StackExchange.ready(function()
                      var channelOptions =
                      tags: "".split(" "),
                      id: "1"
                      ;
                      initTagRenderer("".split(" "), "".split(" "), channelOptions);

                      StackExchange.using("externalEditor", function()
                      // Have to fire editor after snippets, if snippets enabled
                      if (StackExchange.settings.snippets.snippetsEnabled)
                      StackExchange.using("snippets", function()
                      createEditor();
                      );

                      else
                      createEditor();

                      );

                      function createEditor()
                      StackExchange.prepareEditor(
                      heartbeatType: 'answer',
                      autoActivateHeartbeat: false,
                      convertImagesToLinks: true,
                      noModals: true,
                      showLowRepImageUploadWarning: true,
                      reputationToPostImages: 10,
                      bindNavPrevention: true,
                      postfix: "",
                      imageUploader:
                      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                      allowUrls: true
                      ,
                      onDemand: true,
                      discardSelector: ".discard-answer"
                      ,immediatelyShowMarkdownHelp:true
                      );



                      );













                      draft saved

                      draft discarded


















                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47534267%2fwebpack-there-are-multiple-modules-with-names-that-only-differ-in-casing-but%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown

























                      7 Answers
                      7






                      active

                      oldest

                      votes








                      7 Answers
                      7






                      active

                      oldest

                      votes









                      active

                      oldest

                      votes






                      active

                      oldest

                      votes









                      35














                      This is usually a result of a minuscule typo.



                      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'



                      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.






                      share|improve this answer


















                      • 2





                        You're right, it was the path name, not the module name, and that's what threw me. I had NavBar/MainMenuItemMobile.js—the 'b' in Navbar should have been lowercase.

                        – adc17
                        Dec 4 '17 at 15:50











                      • exacly dude, in my case I used React and trow error when I import: import React, Component from 'React'; to fix just from 'react

                        – rflmyk
                        May 9 '18 at 1:34






                      • 1





                        My problem was that in one component I was referencing components/vue.js while in another I was referencing components/Vue.js

                        – Dennis
                        Aug 5 '18 at 17:48











                      • Your comment @ adc17 helped me understand the cryptic output. Read this solution in the WebPack GitHub Wiki and just couldn't make sense of it as everything looked correct. It's amazing how close 'l' looks like 'L' when you have text set very small...hehe.

                        – Guy Park
                        Aug 18 '18 at 5:19















                      35














                      This is usually a result of a minuscule typo.



                      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'



                      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.






                      share|improve this answer


















                      • 2





                        You're right, it was the path name, not the module name, and that's what threw me. I had NavBar/MainMenuItemMobile.js—the 'b' in Navbar should have been lowercase.

                        – adc17
                        Dec 4 '17 at 15:50











                      • exacly dude, in my case I used React and trow error when I import: import React, Component from 'React'; to fix just from 'react

                        – rflmyk
                        May 9 '18 at 1:34






                      • 1





                        My problem was that in one component I was referencing components/vue.js while in another I was referencing components/Vue.js

                        – Dennis
                        Aug 5 '18 at 17:48











                      • Your comment @ adc17 helped me understand the cryptic output. Read this solution in the WebPack GitHub Wiki and just couldn't make sense of it as everything looked correct. It's amazing how close 'l' looks like 'L' when you have text set very small...hehe.

                        – Guy Park
                        Aug 18 '18 at 5:19













                      35












                      35








                      35







                      This is usually a result of a minuscule typo.



                      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'



                      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.






                      share|improve this answer













                      This is usually a result of a minuscule typo.



                      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'



                      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.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Dec 4 '17 at 11:24









                      matthikumatthiku

                      828716




                      828716







                      • 2





                        You're right, it was the path name, not the module name, and that's what threw me. I had NavBar/MainMenuItemMobile.js—the 'b' in Navbar should have been lowercase.

                        – adc17
                        Dec 4 '17 at 15:50











                      • exacly dude, in my case I used React and trow error when I import: import React, Component from 'React'; to fix just from 'react

                        – rflmyk
                        May 9 '18 at 1:34






                      • 1





                        My problem was that in one component I was referencing components/vue.js while in another I was referencing components/Vue.js

                        – Dennis
                        Aug 5 '18 at 17:48











                      • Your comment @ adc17 helped me understand the cryptic output. Read this solution in the WebPack GitHub Wiki and just couldn't make sense of it as everything looked correct. It's amazing how close 'l' looks like 'L' when you have text set very small...hehe.

                        – Guy Park
                        Aug 18 '18 at 5:19












                      • 2





                        You're right, it was the path name, not the module name, and that's what threw me. I had NavBar/MainMenuItemMobile.js—the 'b' in Navbar should have been lowercase.

                        – adc17
                        Dec 4 '17 at 15:50











                      • exacly dude, in my case I used React and trow error when I import: import React, Component from 'React'; to fix just from 'react

                        – rflmyk
                        May 9 '18 at 1:34






                      • 1





                        My problem was that in one component I was referencing components/vue.js while in another I was referencing components/Vue.js

                        – Dennis
                        Aug 5 '18 at 17:48











                      • Your comment @ adc17 helped me understand the cryptic output. Read this solution in the WebPack GitHub Wiki and just couldn't make sense of it as everything looked correct. It's amazing how close 'l' looks like 'L' when you have text set very small...hehe.

                        – Guy Park
                        Aug 18 '18 at 5:19







                      2




                      2





                      You're right, it was the path name, not the module name, and that's what threw me. I had NavBar/MainMenuItemMobile.js—the 'b' in Navbar should have been lowercase.

                      – adc17
                      Dec 4 '17 at 15:50





                      You're right, it was the path name, not the module name, and that's what threw me. I had NavBar/MainMenuItemMobile.js—the 'b' in Navbar should have been lowercase.

                      – adc17
                      Dec 4 '17 at 15:50













                      exacly dude, in my case I used React and trow error when I import: import React, Component from 'React'; to fix just from 'react

                      – rflmyk
                      May 9 '18 at 1:34





                      exacly dude, in my case I used React and trow error when I import: import React, Component from 'React'; to fix just from 'react

                      – rflmyk
                      May 9 '18 at 1:34




                      1




                      1





                      My problem was that in one component I was referencing components/vue.js while in another I was referencing components/Vue.js

                      – Dennis
                      Aug 5 '18 at 17:48





                      My problem was that in one component I was referencing components/vue.js while in another I was referencing components/Vue.js

                      – Dennis
                      Aug 5 '18 at 17:48













                      Your comment @ adc17 helped me understand the cryptic output. Read this solution in the WebPack GitHub Wiki and just couldn't make sense of it as everything looked correct. It's amazing how close 'l' looks like 'L' when you have text set very small...hehe.

                      – Guy Park
                      Aug 18 '18 at 5:19





                      Your comment @ adc17 helped me understand the cryptic output. Read this solution in the WebPack GitHub Wiki and just couldn't make sense of it as everything looked correct. It's amazing how close 'l' looks like 'L' when you have text set very small...hehe.

                      – Guy Park
                      Aug 18 '18 at 5:19













                      2














                      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.






                      share|improve this answer



























                        2














                        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.






                        share|improve this answer

























                          2












                          2








                          2







                          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.






                          share|improve this answer













                          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.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 14 at 14:25









                          lilhamadlilhamad

                          1




                          1





















                              1














                              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.






                              share|improve this answer



























                                1














                                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.






                                share|improve this answer

























                                  1












                                  1








                                  1







                                  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.






                                  share|improve this answer













                                  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.







                                  share|improve this answer












                                  share|improve this answer



                                  share|improve this answer










                                  answered Nov 20 '18 at 14:11









                                  Shashikant PanditShashikant Pandit

                                  904715




                                  904715





















                                      1














                                      For others that are facing this issue and tried the suggested fixes with no luck, here is another possible fix.



                                      Ensure that the path you used in your terminal has the correct capitalization. For example if you're using git bash on Windows and your project has the following path:



                                      C:MyProjectsproject-X



                                      If you access it using cd /c/myprojects/project-x (note the lack of capital cases) and then run npm start you might face this problem.



                                      The solution would be to consider the project path case-sensitive and use it as follows:



                                      cd /C/MyProjects/project-X






                                      share|improve this answer



























                                        1














                                        For others that are facing this issue and tried the suggested fixes with no luck, here is another possible fix.



                                        Ensure that the path you used in your terminal has the correct capitalization. For example if you're using git bash on Windows and your project has the following path:



                                        C:MyProjectsproject-X



                                        If you access it using cd /c/myprojects/project-x (note the lack of capital cases) and then run npm start you might face this problem.



                                        The solution would be to consider the project path case-sensitive and use it as follows:



                                        cd /C/MyProjects/project-X






                                        share|improve this answer

























                                          1












                                          1








                                          1







                                          For others that are facing this issue and tried the suggested fixes with no luck, here is another possible fix.



                                          Ensure that the path you used in your terminal has the correct capitalization. For example if you're using git bash on Windows and your project has the following path:



                                          C:MyProjectsproject-X



                                          If you access it using cd /c/myprojects/project-x (note the lack of capital cases) and then run npm start you might face this problem.



                                          The solution would be to consider the project path case-sensitive and use it as follows:



                                          cd /C/MyProjects/project-X






                                          share|improve this answer













                                          For others that are facing this issue and tried the suggested fixes with no luck, here is another possible fix.



                                          Ensure that the path you used in your terminal has the correct capitalization. For example if you're using git bash on Windows and your project has the following path:



                                          C:MyProjectsproject-X



                                          If you access it using cd /c/myprojects/project-x (note the lack of capital cases) and then run npm start you might face this problem.



                                          The solution would be to consider the project path case-sensitive and use it as follows:



                                          cd /C/MyProjects/project-X







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Dec 23 '18 at 4:35









                                          Dimitar DimitrovDimitar Dimitrov

                                          10.3k43361




                                          10.3k43361





















                                              0














                                              I also have this warning, but my problem is that,
                                              for example, there is the file directory of React project:



                                              **/src/containers/PageOne/index.js
                                              **/src/containers/PageTWO/pageOneAction.js

                                              **/src/containers/PageOne/index.js
                                              **/src/containers/PageTWO/pageTWOAction.js


                                              And there will be a similar warning. Because you'd better not use the same file name(such as action.js in those folders) excluding index.js, otherwise this can lead to unexpected behavior when compiling on a file system with other case-semantic.



                                              To solve this warning, we could do that:



                                              **/src/containers/PageOne/index.js
                                              **/src/containers/PageOne/pageOneAction.js

                                              **/src/containers/PageTWO/index.js
                                              **/src/containers/PageTWO/pageTWOAction.js


                                              This is my experience, hope it could help someone.






                                              share|improve this answer





























                                                0














                                                I also have this warning, but my problem is that,
                                                for example, there is the file directory of React project:



                                                **/src/containers/PageOne/index.js
                                                **/src/containers/PageTWO/pageOneAction.js

                                                **/src/containers/PageOne/index.js
                                                **/src/containers/PageTWO/pageTWOAction.js


                                                And there will be a similar warning. Because you'd better not use the same file name(such as action.js in those folders) excluding index.js, otherwise this can lead to unexpected behavior when compiling on a file system with other case-semantic.



                                                To solve this warning, we could do that:



                                                **/src/containers/PageOne/index.js
                                                **/src/containers/PageOne/pageOneAction.js

                                                **/src/containers/PageTWO/index.js
                                                **/src/containers/PageTWO/pageTWOAction.js


                                                This is my experience, hope it could help someone.






                                                share|improve this answer



























                                                  0












                                                  0








                                                  0







                                                  I also have this warning, but my problem is that,
                                                  for example, there is the file directory of React project:



                                                  **/src/containers/PageOne/index.js
                                                  **/src/containers/PageTWO/pageOneAction.js

                                                  **/src/containers/PageOne/index.js
                                                  **/src/containers/PageTWO/pageTWOAction.js


                                                  And there will be a similar warning. Because you'd better not use the same file name(such as action.js in those folders) excluding index.js, otherwise this can lead to unexpected behavior when compiling on a file system with other case-semantic.



                                                  To solve this warning, we could do that:



                                                  **/src/containers/PageOne/index.js
                                                  **/src/containers/PageOne/pageOneAction.js

                                                  **/src/containers/PageTWO/index.js
                                                  **/src/containers/PageTWO/pageTWOAction.js


                                                  This is my experience, hope it could help someone.






                                                  share|improve this answer















                                                  I also have this warning, but my problem is that,
                                                  for example, there is the file directory of React project:



                                                  **/src/containers/PageOne/index.js
                                                  **/src/containers/PageTWO/pageOneAction.js

                                                  **/src/containers/PageOne/index.js
                                                  **/src/containers/PageTWO/pageTWOAction.js


                                                  And there will be a similar warning. Because you'd better not use the same file name(such as action.js in those folders) excluding index.js, otherwise this can lead to unexpected behavior when compiling on a file system with other case-semantic.



                                                  To solve this warning, we could do that:



                                                  **/src/containers/PageOne/index.js
                                                  **/src/containers/PageOne/pageOneAction.js

                                                  **/src/containers/PageTWO/index.js
                                                  **/src/containers/PageTWO/pageTWOAction.js


                                                  This is my experience, hope it could help someone.







                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited Nov 15 '18 at 12:33

























                                                  answered Nov 15 '18 at 1:33









                                                  aerminaermin

                                                  11




                                                  11





















                                                      0














                                                      I had a similar error but not exactly the same described by other answers. I hope my answer can help someone.



                                                      I was importing a file in two components (angular 7 project):



                                                      Component 1:



                                                      LANGUAGES = require("../../models/LANGUAGES.json");


                                                      Component 2:



                                                      LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                      This is a foolish mistake: the problem here is I'm using two differents requires on the same file with different capital letters (it generated a warning).



                                                      How to solve the problem ? Use the same model.



                                                      Component 1:



                                                      LANGUAGES = require("../../models/LANGUAGES.json");


                                                      Component 2:



                                                      LANGUAGES = require("../../models/LANGUAGES.json");


                                                      OR



                                                      Component 1:



                                                      LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                      Component 2:



                                                      LANGUAGES = require("../../models/LANGUAGES.JSON");





                                                      share|improve this answer



























                                                        0














                                                        I had a similar error but not exactly the same described by other answers. I hope my answer can help someone.



                                                        I was importing a file in two components (angular 7 project):



                                                        Component 1:



                                                        LANGUAGES = require("../../models/LANGUAGES.json");


                                                        Component 2:



                                                        LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                        This is a foolish mistake: the problem here is I'm using two differents requires on the same file with different capital letters (it generated a warning).



                                                        How to solve the problem ? Use the same model.



                                                        Component 1:



                                                        LANGUAGES = require("../../models/LANGUAGES.json");


                                                        Component 2:



                                                        LANGUAGES = require("../../models/LANGUAGES.json");


                                                        OR



                                                        Component 1:



                                                        LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                        Component 2:



                                                        LANGUAGES = require("../../models/LANGUAGES.JSON");





                                                        share|improve this answer

























                                                          0












                                                          0








                                                          0







                                                          I had a similar error but not exactly the same described by other answers. I hope my answer can help someone.



                                                          I was importing a file in two components (angular 7 project):



                                                          Component 1:



                                                          LANGUAGES = require("../../models/LANGUAGES.json");


                                                          Component 2:



                                                          LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                          This is a foolish mistake: the problem here is I'm using two differents requires on the same file with different capital letters (it generated a warning).



                                                          How to solve the problem ? Use the same model.



                                                          Component 1:



                                                          LANGUAGES = require("../../models/LANGUAGES.json");


                                                          Component 2:



                                                          LANGUAGES = require("../../models/LANGUAGES.json");


                                                          OR



                                                          Component 1:



                                                          LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                          Component 2:



                                                          LANGUAGES = require("../../models/LANGUAGES.JSON");





                                                          share|improve this answer













                                                          I had a similar error but not exactly the same described by other answers. I hope my answer can help someone.



                                                          I was importing a file in two components (angular 7 project):



                                                          Component 1:



                                                          LANGUAGES = require("../../models/LANGUAGES.json");


                                                          Component 2:



                                                          LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                          This is a foolish mistake: the problem here is I'm using two differents requires on the same file with different capital letters (it generated a warning).



                                                          How to solve the problem ? Use the same model.



                                                          Component 1:



                                                          LANGUAGES = require("../../models/LANGUAGES.json");


                                                          Component 2:



                                                          LANGUAGES = require("../../models/LANGUAGES.json");


                                                          OR



                                                          Component 1:



                                                          LANGUAGES = require("../../models/LANGUAGES.JSON");


                                                          Component 2:



                                                          LANGUAGES = require("../../models/LANGUAGES.JSON");






                                                          share|improve this answer












                                                          share|improve this answer



                                                          share|improve this answer










                                                          answered Dec 27 '18 at 10:28









                                                          CurseCurse

                                                          1731111




                                                          1731111





















                                                              0














                                                              Similar issue, but my problem was packages installed in C:Users<username>AppDataLocalYarn. Deleting that folder and re-adding the global packages I wanted fixed the issue.






                                                              share|improve this answer



























                                                                0














                                                                Similar issue, but my problem was packages installed in C:Users<username>AppDataLocalYarn. Deleting that folder and re-adding the global packages I wanted fixed the issue.






                                                                share|improve this answer

























                                                                  0












                                                                  0








                                                                  0







                                                                  Similar issue, but my problem was packages installed in C:Users<username>AppDataLocalYarn. Deleting that folder and re-adding the global packages I wanted fixed the issue.






                                                                  share|improve this answer













                                                                  Similar issue, but my problem was packages installed in C:Users<username>AppDataLocalYarn. Deleting that folder and re-adding the global packages I wanted fixed the issue.







                                                                  share|improve this answer












                                                                  share|improve this answer



                                                                  share|improve this answer










                                                                  answered Jan 29 at 16:33









                                                                  Josh GJosh G

                                                                  132311




                                                                  132311



























                                                                      draft saved

                                                                      draft discarded
















































                                                                      Thanks for contributing an answer to Stack Overflow!


                                                                      • Please be sure to answer the question. Provide details and share your research!

                                                                      But avoid


                                                                      • Asking for help, clarification, or responding to other answers.

                                                                      • Making statements based on opinion; back them up with references or personal experience.

                                                                      To learn more, see our tips on writing great answers.




                                                                      draft saved


                                                                      draft discarded














                                                                      StackExchange.ready(
                                                                      function ()
                                                                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f47534267%2fwebpack-there-are-multiple-modules-with-names-that-only-differ-in-casing-but%23new-answer', 'question_page');

                                                                      );

                                                                      Post as a guest















                                                                      Required, but never shown





















































                                                                      Required, but never shown














                                                                      Required, but never shown












                                                                      Required, but never shown







                                                                      Required, but never shown

































                                                                      Required, but never shown














                                                                      Required, but never shown












                                                                      Required, but never shown







                                                                      Required, but never shown







                                                                      Popular posts from this blog

                                                                      Top Tejano songwriter Luis Silva dead of heart attack at 64

                                                                      ReactJS Fetched API data displays live - need Data displayed static

                                                                      政党