Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning "There is another module with a equal name when case is ignored." #382

Closed
byelims opened this issue Jul 29, 2014 · 55 comments

Comments

@byelims
Copy link

@byelims byelims commented Jul 29, 2014

Today when I build my project, webpack warns me a lot like this:

WARNING in .//fluxxor//lodash-node/modern/internals/baseCreate.js
There is another module with a equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

WARNING in .//Fluxxor//lodash-node/modern/internals/baseCreate.js
There is another module with a equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.

It was fine yesterday. I don't know what is wrong. There is only fluxxor in node_modules. I have tried to remove node_modules directory completely and then re-install. But it doesn't help.

I'm on OS X 10.9.4. Any ideas?

@byelims

This comment has been minimized.

Copy link
Author

@byelims byelims commented Jul 29, 2014

I have found the answer. In a file, I made a typo:

var fluxxor = require('Fluxxor');    //should be require('fluxxor')

The filesystem is case-insensitive, so webpack will compile the same file twice.

@byelims byelims closed this Jul 29, 2014
@delacruz-dev

This comment has been minimized.

Copy link

@delacruz-dev delacruz-dev commented Oct 14, 2015

thanks for sharing! I was having the same issue :) 👍

@brandonaaskov

This comment has been minimized.

Copy link

@brandonaaskov brandonaaskov commented Nov 1, 2015

👍 thanks for sharing

@jakoblind

This comment has been minimized.

Copy link

@jakoblind jakoblind commented Nov 11, 2015

Thanks for sharing! Had the same issue!

ravirani added a commit to getcircle/circle-web that referenced this issue Nov 23, 2015
@Vall3y

This comment has been minimized.

Copy link

@Vall3y Vall3y commented Dec 13, 2015

+1 👍

@mrblackus

This comment has been minimized.

Copy link

@mrblackus mrblackus commented Dec 17, 2015

👍

1 similar comment
@arcseldon

This comment has been minimized.

Copy link

@arcseldon arcseldon commented Dec 21, 2015

👍

@gitdarin

This comment has been minimized.

Copy link

@gitdarin gitdarin commented Jan 5, 2016

awesome. thank you!

@anhhh11

This comment has been minimized.

Copy link

@anhhh11 anhhh11 commented Jan 6, 2016

👍

2 similar comments
@arcarson

This comment has been minimized.

Copy link

@arcarson arcarson commented Feb 9, 2016

+1

@shenlq

This comment has been minimized.

Copy link

@shenlq shenlq commented Feb 18, 2016

+1

@shenlq

This comment has been minimized.

Copy link

@shenlq shenlq commented Feb 18, 2016

叼叼叼

@coderafei

This comment has been minimized.

Copy link

@coderafei coderafei commented Feb 18, 2016

👍

@Pradeep-Kumar-S-M

This comment has been minimized.

Copy link

@Pradeep-Kumar-S-M Pradeep-Kumar-S-M commented Feb 23, 2016

I had the same issue. Thank you.

@robatron

This comment has been minimized.

Copy link

@robatron robatron commented Mar 9, 2016

👍

@dazziola

This comment has been minimized.

Copy link

@dazziola dazziola commented Mar 30, 2016

+1 Thanks!

1 similar comment
@Axighi

This comment has been minimized.

Copy link

@Axighi Axighi commented Apr 1, 2016

+1 Thanks!

@PeteDuncanson

This comment has been minimized.

Copy link

@PeteDuncanson PeteDuncanson commented Apr 15, 2016

quick search through all my files for each version of the file it reports but in lowercase (it was reporting it in a file as Uppercase found the two references where I'd got the wrong case. Luckily I'm on windows (although some of you will laugh at the lucky part) so its not case sensitive but I wanted the warning message to disappear :)

Example:

Filename is actually: Price.jsx

searched for: price.jsx to find the references it was complaining about.

@Dhaval8087

This comment has been minimized.

Copy link

@Dhaval8087 Dhaval8087 commented Apr 15, 2016

Thank you so much

@olegdeezus

This comment has been minimized.

Copy link

@olegdeezus olegdeezus commented Apr 22, 2016

Thanks! That was useful!

@wb-yangxing

This comment has been minimized.

Copy link

@wb-yangxing wb-yangxing commented Jun 13, 2016

nice sharing

@EmrysMyrddin

This comment has been minimized.

Copy link

@EmrysMyrddin EmrysMyrddin commented Jul 15, 2016

This warning should be very much explicit for a simple problem like that. It lacks the file where the problem have been found...

@ghoshabhi

This comment has been minimized.

Copy link

@ghoshabhi ghoshabhi commented Jul 26, 2016

Useful info! 👍

@fristys

This comment has been minimized.

Copy link

@fristys fristys commented Aug 2, 2016

Thanks for the help, this fixed my problem...after a lot of searching. This warning message should be a lot smarter and should actually point to the problematic line in question, enough with this guessing wizardry shit...

@DaWoody

This comment has been minimized.

Copy link

@DaWoody DaWoody commented Oct 24, 2016

Yepp having the same issue with another module, thanks for sharing :) 👍

@sondreb

This comment has been minimized.

Copy link

@sondreb sondreb commented Oct 25, 2016

As others have mentioned, please improve the error message and make it possible to suppress the warning to avoid huge log outputs of file path to every single source file.

@sudkumar

This comment has been minimized.

Copy link

@sudkumar sudkumar commented Oct 27, 2016

(y) Had the same issue. Thanks.

@ahmad2smile

This comment has been minimized.

Copy link

@ahmad2smile ahmad2smile commented Nov 5, 2016

ty!!

@StokeMasterJack

This comment has been minimized.

Copy link

@StokeMasterJack StokeMasterJack commented Nov 17, 2016

I had this warning also. It took me two hours to find it. I am on a Mac. What I did, was delete the module in question. Empty my trash. Re-create the module from scratch.

Then I ran flow, which took me straight to the actual error.

Before this "delete the file and empty the trash" exercise, Flow was not reporting the bug. Only webpack was reporting the error. But webpack's error was not helpful.

So it sounds like some kind of file system issue?

@xzjcool

This comment has been minimized.

Copy link

@xzjcool xzjcool commented Nov 24, 2016

Thank you +1

@adamkdean

This comment has been minimized.

Copy link

@adamkdean adamkdean commented Dec 12, 2016

Having this too but no way of knowing where the issue is. No changes but now it starts spitting this out? Perhaps it is some sort of FS issue.

@zhangolve

This comment has been minimized.

Copy link

@zhangolve zhangolve commented Dec 26, 2016

oh,help me a lot ,thank you.

@saman

This comment has been minimized.

Copy link

@saman saman commented Jan 8, 2017

 Thanks for sharing.

@chvin

This comment has been minimized.

Copy link

@chvin chvin commented Jan 8, 2017

Thanks for sharing.

@littlelake

This comment has been minimized.

Copy link

@littlelake littlelake commented Jan 13, 2017

ty!

@jjtfsalgado

This comment has been minimized.

Copy link

@jjtfsalgado jjtfsalgado commented Jan 26, 2017

thanks ;)

@andrewpurcell

This comment has been minimized.

Copy link

@andrewpurcell andrewpurcell commented Feb 8, 2017

👍

@xavibonell

This comment has been minimized.

Copy link

@xavibonell xavibonell commented Feb 17, 2017

thanks, same issue here

@y-lakhdar

This comment has been minimized.

Copy link

@y-lakhdar y-lakhdar commented Feb 20, 2017

👍

@vldmri

This comment has been minimized.

Copy link

@vldmri vldmri commented Feb 22, 2017

👍 the same issue

@1003865572

This comment has been minimized.

Copy link

@1003865572 1003865572 commented Mar 9, 2017

文件夹名为 fluxxor
进入的 时候 却以 Fluxxor 引入,
var fluxxor = require('Fluxxor'); //should be require('fluxxor')

大小写不一造成的,
(英文看不懂,我翻译了 上面那哥们儿的回复)

@JackDan9

This comment has been minimized.

Copy link

@JackDan9 JackDan9 commented Apr 21, 2017

problem(Error case):
WARNING in ./components/common/NoData.jsx
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.
Answer:
It is a kind of Warning, Remind us of right writing(case-semantic).
Answer(Right case):
./component/Common/NoData.jsx.

@chengkj99

This comment has been minimized.

Copy link

@chengkj99 chengkj99 commented May 5, 2017

@byelims just this error, thank you !

@vizFlux

This comment has been minimized.

Copy link

@vizFlux vizFlux commented May 17, 2017

Thank you so much for sharing.

In my case, I did

import React from 'React';

:(

@mohitbhatia1994

This comment has been minimized.

Copy link

@mohitbhatia1994 mohitbhatia1994 commented Aug 3, 2017

@byelims Thanks a lot for sharing.

@cunjieliu

This comment has been minimized.

Copy link

@cunjieliu cunjieliu commented Aug 7, 2017

Good! Thanks for sharing!

@cemarguvanli

This comment has been minimized.

Copy link

@cemarguvanli cemarguvanli commented Aug 16, 2017

thanks for sharing!

@G1anpierre

This comment has been minimized.

Copy link

@G1anpierre G1anpierre commented Dec 23, 2017

Thanks for sharing! have had the same issue! haha

@melkishengue

This comment has been minimized.

Copy link

@melkishengue melkishengue commented Aug 7, 2018

👍cool, thanks

@shanghaiese

This comment has been minimized.

Copy link

@shanghaiese shanghaiese commented Nov 5, 2018

Thanks !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.