Webpack: “there are multiple modules with names that only differ in casing” but modules referenced are identical
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
add a comment |
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
add a comment |
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
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
webpack webpack-hot-middleware
asked Nov 28 '17 at 14:42
adc17adc17
594622
594622
add a comment |
add a comment |
7 Answers
7
active
oldest
votes
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.
2
You're right, it was the path name, not the module name, and that's what threw me. I hadNavBar/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 justfrom 'react
– rflmyk
May 9 '18 at 1:34
1
My problem was that in one component I was referencingcomponents/vue.js
while in another I was referencingcomponents/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
add a comment |
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.
add a comment |
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.
add a comment |
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
add a comment |
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.
add a comment |
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");
add a comment |
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.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
2
You're right, it was the path name, not the module name, and that's what threw me. I hadNavBar/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 justfrom 'react
– rflmyk
May 9 '18 at 1:34
1
My problem was that in one component I was referencingcomponents/vue.js
while in another I was referencingcomponents/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
add a comment |
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.
2
You're right, it was the path name, not the module name, and that's what threw me. I hadNavBar/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 justfrom 'react
– rflmyk
May 9 '18 at 1:34
1
My problem was that in one component I was referencingcomponents/vue.js
while in another I was referencingcomponents/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
add a comment |
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.
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.
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 hadNavBar/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 justfrom 'react
– rflmyk
May 9 '18 at 1:34
1
My problem was that in one component I was referencingcomponents/vue.js
while in another I was referencingcomponents/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
add a comment |
2
You're right, it was the path name, not the module name, and that's what threw me. I hadNavBar/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 justfrom 'react
– rflmyk
May 9 '18 at 1:34
1
My problem was that in one component I was referencingcomponents/vue.js
while in another I was referencingcomponents/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
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 14 at 14:25
lilhamadlilhamad
1
1
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Nov 20 '18 at 14:11
Shashikant PanditShashikant Pandit
904715
904715
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Dec 23 '18 at 4:35
Dimitar DimitrovDimitar Dimitrov
10.3k43361
10.3k43361
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
edited Nov 15 '18 at 12:33
answered Nov 15 '18 at 1:33
aerminaermin
11
11
add a comment |
add a comment |
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");
add a comment |
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");
add a comment |
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");
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");
answered Dec 27 '18 at 10:28
CurseCurse
1731111
1731111
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Jan 29 at 16:33
Josh GJosh G
132311
132311
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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