Open fungilation opened 8 years ago
I am having the same issue after an upgrade.
Having the same issue after installing it. I'm working on Ubuntu 14.04 LTS, npm v3.7.3 and NodeJS v4.2.6:
[1:56:41 PM] <END> Building (deprecated) Asset Map (315ms)
Failed to build DependencyGraph: Naming collision detected: /home/dev/Sandbox/react/AndroidClient/node_modules/react-native/Libraries/vendor/react/platformImplementations/universal/worker/UniversalWorkerNodeHandle.js collides with /home/dev/Sandbox/react/AndroidClient/node_modules/react-native-webbrowser/node_modules/react-native/Libraries/vendor/react/platformImplementations/universal/worker/UniversalWorkerNodeHandle.js
Error: Naming collision detected: /home/dev/Sandbox/react/AndroidClient/node_modules/react-native/Libraries/vendor/react/platformImplementations/universal/worker/UniversalWorkerNodeHandle.js collides with /home/dev/Sandbox/react/AndroidClient/node_modules/react-native-webbrowser/node_modules/react-native/Libraries/vendor/react/platformImplementations/universal/worker/UniversalWorkerNodeHandle.js
at HasteMap._updateHasteMap (HasteMap.js:132:13)
at HasteMap.js:103:28
at tryCallOne (/home/dev/Sandbox/react/AndroidClient/node_modules/promise/lib/core.js:37:12)
at /home/dev/Sandbox/react/AndroidClient/node_modules/promise/lib/core.js:123:15
at flush (/home/dev/Sandbox/react/AndroidClient/node_modules/asap/raw.js:50:29)
at nextTickCallbackWith0Args (node.js:419:9)
at process._tickCallback (node.js:348:13)
It has a redundant dependency to react-native:
https://github.com/d-a-n/react-native-webbrowser/blob/master/package.json#L33
I just removed that dependency, deleted the react-native folder from react-native-webbrowser/node_modules and run again:
react-native start
and it worked.
Chiming in because this issue is one of the top search results for other similar issues.
This error means one of your packages has a redundant or incompatible dependency, check the referenced paths. Most of the time you can fix the issue simply by updating the package.json
for the offending package.
If everything works fine, don't forget to make a pull request for the said package.
Shame this isn't maintained
This is on latest RN 0.22.