-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Naming collision detected #3558
Comments
@foghina @martinbigio I got the same error. Some observations:
I took master branch for generating the new project(changed the cli for this). |
I'm getting similar error but its erroring out on react-tools, any ideas?
|
I'm getting similar error too after adding react-native-router Error building DepdendencyGraph: |
If your are stuck up here |
This Promise issue looks legimit, sorry for closing. @mkonicek we don't have a strategy for dealing with this inside the packager, it just doesn't support having the same haste module defined twice. Fortunately, the new CLI brings the |
@martinbigio I have an idea for how to handle duplicate Haste modules by scoping them. I don't have the bandwidth to build it myself but will describe my vision for it in a new issue. |
@ide, I think part of this will be solved by the issue we were just chatting about, which is that haste modules outside of react-native, react-tools, and currently, due to AsyncStorage, parse, shouldn't be used at all. Duplicate Haste module scoping would be cool, but I think fixing this other issue (which I plan to do ASAP) will solve most cases. |
@skevy so just to be clear -- you want to fix deep dependencies so that we don't run javascript for Node on a platform.. that's not Node? |
Wait, what? I don't think I said that. I'm confused by your response. |
All I was saying was that the issue described here would be resolved by |
Oh i see. I thought you were referring to honoring the "browser" entry in the JSON. |
No no...we should have the 'react-native' directive. |
What things should I know before adding to the blacklist file? as it is Im getting Error building DepdendencyGraph: when I add warning.js and also one other file to the blacklist the packager starts but I run into issues once the application starts |
@mangogogos i got the same situation,
in my node_modules,there is only |
I have the same issue |
Same problem here. I found a workaround: |
It happened to me when I changed some dependencies in my project. Running |
Is there a way to exclude a folder from the packaging? |
@jpapillon solution don't works for me |
Removing global react-native-cli package worked for me: npm uninstall -g react-native-cli |
I'm trying to put a fairly complex react application into a webview in react native (to buy myself a little bit of time to do the "Real" port to RN. But I'm running into this issue. I've tried everything I can think of, but it seems that my compiled app (in Am I just totally stuck here until someone figures out how to namespace/scope the Haste modules?
|
The packager has a way to configure a blacklist (grep around for the details), which would let you exclude main.js from the JS bundle since RN doesn't need it anyway. |
Oh - ok. That is interesting, thank you.
|
None of the "solutions" work for me. Anyone have a way around this? |
The same issue. Previous suggestions don't work for me
|
npm -v; node -v Error building DependencyGraph: |
as @ide mentioned you can blacklist files/regexps on the packager. Take a look at |
thank you for your comment martinbigio! |
@vkhazin absolutely, I'm glad you're giving React Native a try. My comment was for @yarax tough. There's something wrong on your setup. The steps posted on https://facebook.github.io/react-native/docs/getting-started.html should work. Could you give it a try? :) |
Also, in general it's better to ask these type of questions on Stack Overflow: http://stackoverflow.com/questions/tagged/react-native |
Hi Martin, Thank you for your comments! I did tried twice twice using node 4x and node 5x to make sure the issue is On Tue, Jan 12, 2016 at 11:20 AM, Martín Bigio notifications@github.com
Sincerely yours, |
I think the problem is related to the fact the project name is |
Here is something to laugh about:
Repeat all of the above steps with 'react-native init AwesomeProject' and it runs! |
I had a similar issue when downgrading from 21 to 18, and uninstalled the react peer dependency and collision error never occurred again.
|
Failed to build DependencyGraph: Naming collision detected: /Users/erwai/Documents/app/MyApp/node_modules/react/node_modules/fbjs/lib/warning.js collides with /Users/erwai/Documents/app/MyApp/node_modules/fbjs/lib/warning.js npm ERR! Darwin 15.2.0 I tried all methods suggested above and none of them works... I updated my Node & npm versions to the latest versions but it still not working. |
Do yourselves a favor:
If you had/have a problem resolving modules:
Starting with the Credit goes to @johnknaack for finding the rn-cli-config.js option found in |
It works for me. @hyphenbash Remove |
Thanks @hyphenbash Also resolved this problem on Ubuntu Linux 15.10 by removing react depency. (I had downgraded from react native 0.24.1 to 0.20.0) |
All, use react-native version 0.26.0. That'll solve your problem. |
@yarax Apparently having NPM version > 3.0 was the fix for me when i had the exact same issue. Hope this helps if you are still looking. |
intenta con este metodo: |
I had this problem because I had a |
I was getting errors like
I solved it by deleting npm's cache
|
For me the naming collision error was actually caused by using |
If anyone's using react-native-router-flux and ending up here for help check: |
when I execute ./packager/packager.sh, I see the error below!
Error building DepdendencyGraph:
Error: Naming collision detected: /Users/guo/Desktop/react-native/node_modules/react-tools/src/shared/vendor/core/dom/isTextNode.js collides with /Users/guo/Desktop/react-native/AwesomeProject/node_modules/react-native/node_modules/react-tools/src/shared/vendor/core/dom/isTextNode.js
at HasteMap._updateHasteMap (/Users/guo/Desktop/react-native/packager/react-packager/src/DependencyResolver/DependencyGraph/HasteMap.js:123:13)
at /Users/guo/Desktop/react-native/packager/react-packager/src/DependencyResolver/DependencyGraph/HasteMap.js:95:28
at tryCallOne (/Users/guo/Desktop/react-native/node_modules/promise/lib/core.js:37:12)
at /Users/guo/Desktop/react-native/node_modules/promise/lib/core.js:103:15
at flush (/Users/guo/Desktop/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)
at doNTCallback0 (node.js:417:9)
at process._tickCallback (node.js:346:13)
The text was updated successfully, but these errors were encountered: