-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[0.18] Error: Naming collision detected #5412
Comments
Hey sampurcell93, thanks for reporting this issue! React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
|
@sampurcell93 can you try the steps here: #5390 (comment) and see if it works for you |
I tried the fixes listed in #5390, but commenting here since the title is a more accurate description. I'm also getting a lot of similar errors regarding
It seems perhaps related to Use React from NPM - 5bf1f4c, but it's unclear quite how, and not quite clear what to do about it. I've tried manually deleting deeply nested |
A new day. Simply removing |
Same here. I was upgrading from 0.17. Ran react-native upgrade. I've removed node_modules dir. Then npm install (reported no errors) node v5.4.0
|
|
I should say. My OSX has case sensitive fs. Should not be problem. Just sayin ... :-) |
Hmm… then I'm not sure, but I'm pretty sure it comes down a duplicate dependency that's no longer necessary. Did you |
yes I did (no errors) ll -l node_modules
|
Hmm… this could be a red herring, but should |
Usually yes. But I think npm is getting smarted and tries to put packages closest to the top of modules tree. More of them are shared with others and this saves memory. Don't blame if it's not true :-) |
npm3 does that, I think. You're using npm 2.14.15 so I'd expect those to be nested. But then I could be totally wrong. 😬 |
Does the packager succeed if you just |
Just upgraded to npm3. Removed node_modules and reinstalled them. And I'm fine. Issue seems to be resolved. node v5.4.0 PS: react module is on top of the node_modules tree (same as for npm2) |
Cool. Not sure why it was in node_modules/ with npm2, but I guess the important thing is that it's not also nested. @sampurcell93 did something along these lines fix your issue? Maybe a redundant dependency? |
@rreusser thanks I was having the same issue (using npm2) & the redundant dependency was the culprit |
Win! If the solution is searchable and the problem seems solvable with some dependency tweaks, can this issue perhaps be closed? |
@rreusser Since my upgrade to RN 0.18.1 has this error, am I correctly understanding that the answer is to:
Thanks |
I'm not an expert but whichever package is giving the error (it's in the stack trace) seems to be installed more than once and haste map doesn't like that. It seems like maybe there's more than one source of this issue, but the solution seems the same: locate the duplicate copies. One of the packages probably doesn't need to be there. I didn't upgrade to npm3. Seems like maybe that works, but I'd try just resolving the duplicate first. |
[EDIT] The above steps did work. |
Sorry to bump, but I'm still having an issue and meanwhile RN 0.19.0 has been released. I tried everything above: installing npm3, remove and reinstalling packages, clearing watchmen cache.
node: 5.4.0 |
You could look at my project setup, if that helps, https://github.com/bartonhammond/snowflake |
I'm having the same issues, tried all the steps above, and still can't get it working. Looking forward to a fix! |
@Emibob I tried with both npm2 and npm3. |
me either |
same issue for me. When adding material-ui I get this issue. RN v0.20 Tried everything so far and no luck. This is the error I get ailed to build DependencyGraph: Naming collision detected: /Applications/MAMP/htdocs/xxxx/node_modules/react-tap-event-plugin/node_modules/fbjs/flow/include/warning.js collides with /Applications/MAMP/htdocs/xxxx/node_modules/react-tap-event-plugin/node_modules/fbjs/lib/warning.js Any ideas? |
using nodejs 4.3 fixed the issue above for me. |
I saw this issue using npm2. I saw this warning first:
So npm 2 was installing react at the top level. UPDATE: OOOPS! Spoke too soon. Now I've got a red box warning |
plz use npm3 . after I use npm3 ,these is no error now. |
npm3 don't solve the issue there. using nodejs 4.3 did. |
hi, everybody. I meet the same errors. I tried npm3 but not work. |
using |
@kevando npm3 traverses your dependency graph a bit differently than npm 2. Specifically, it sort of flattens it out, so you wouldn't have an instance where you'd have I'm personally running hth! |
As of the upcoming 0.22.0 release, React Native depends on both react and fbjs via npm, which should solve the duplicate dependency issues. Please give 0.22.0-rc a try! We're closing out this issue - feel free to continue discussion, or reopen should this error persist on the latest versions of React Native. |
fbjs duplicate ,del one of them |
Hi there, I just updated my RN package to 0.18, and then I ran a
react-native upgrade
. However, there seems to be a problem starting the packager:I have tried fixing problems with the watchman cache, using the --reset-cache option, and the
rm -rf $TMPDIR/react-packager-*
method. Additionally, I have looked into this specific error, but I can only find examples where it is the result of a collision between and extra node_modules/react-native/node_modules directory and others... this seems to be a more fundamental problem. Any advice would be appreciated.Running node 5.4.0 and npm 3.3.12.
The text was updated successfully, but these errors were encountered: