{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/6167","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/6167/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/6167/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/6167/events","html_url":"https://github.com/facebook/react-native/issues/6167","id":136651560,"number":6167,"title":"Naming collision between react-native and react libs","user":{"login":"fxhereng","id":5686128,"avatar_url":"https://avatars.githubusercontent.com/u/5686128?v=3","gravatar_id":"","url":"https://api.github.com/users/fxhereng","html_url":"https://github.com/fxhereng","followers_url":"https://api.github.com/users/fxhereng/followers","following_url":"https://api.github.com/users/fxhereng/following{/other_user}","gists_url":"https://api.github.com/users/fxhereng/gists{/gist_id}","starred_url":"https://api.github.com/users/fxhereng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxhereng/subscriptions","organizations_url":"https://api.github.com/users/fxhereng/orgs","repos_url":"https://api.github.com/users/fxhereng/repos","events_url":"https://api.github.com/users/fxhereng/events{/privacy}","received_events_url":"https://api.github.com/users/fxhereng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-26T10:03:59Z","updated_at":"2016-02-26T12:57:27Z","closed_at":null,"body":"Using RN 0.20, naming collision when I have both react and react-native packages installed:\r\n\r\nDoing `react-native start`, I got this:\r\n\r\n```\r\nFailed to build DependencyGraph: Naming collision detected: /home/cloud/React-native/Fincaus/node_modules/react-native/node_modules/react/lib/ReactServerBatchingStrategy.js collides with /home/cloud/React-native/Fincaus/node_modules/react/lib/ReactServerBatchingStrategy.js\r\nError: Naming collision detected: /home/cloud/React-native/Fincaus/node_modules/react-native/node_modules/react/lib/ReactServerBatchingStrategy.js collides with /home/cloud/React-native/Fincaus/node_modules/react/lib/ReactServerBatchingStrategy.js\r\n    at HasteMap._updateHasteMap (HasteMap.js:132:13)\r\n    at HasteMap.js:103:28\r\n    at tryCallOne (/home/cloud/React-native/Fincaus/node_modules/react-native/node_modules/promise/lib/core.js:37:12)\r\n    at /home/cloud/React-native/Fincaus/node_modules/react-native/node_modules/promise/lib/core.js:123:15\r\n    at flush (/home/cloud/React-native/Fincaus/node_modules/react-native/node_modules/promise/node_modules/asap/raw.js:50:29)\r\n    at nextTickCallbackWith0Args (node.js:419:9)\r\n    at process._tickCallback (node.js:348:13)\r\n\r\n```\r\n\r\n\r\n\r\n`ReactServerBatchingStrategy.js` seemed to be the problem. If I delele react/ library from project it's working but it's not what I want...\r\n\r\nHow I could fix this? Maybe installing react apart is not advised? (I installed it for test purposes)\r\n\r\nThanks for helping,\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/189263880","html_url":"https://github.com/facebook/react-native/issues/6167#issuecomment-189263880","issue_url":"https://api.github.com/repos/facebook/react-native/issues/6167","id":189263880,"user":{"login":"Kureev","id":2273613,"avatar_url":"https://avatars.githubusercontent.com/u/2273613?v=3","gravatar_id":"","url":"https://api.github.com/users/Kureev","html_url":"https://github.com/Kureev","followers_url":"https://api.github.com/users/Kureev/followers","following_url":"https://api.github.com/users/Kureev/following{/other_user}","gists_url":"https://api.github.com/users/Kureev/gists{/gist_id}","starred_url":"https://api.github.com/users/Kureev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kureev/subscriptions","organizations_url":"https://api.github.com/users/Kureev/orgs","repos_url":"https://api.github.com/users/Kureev/repos","events_url":"https://api.github.com/users/Kureev/events{/privacy}","received_events_url":"https://api.github.com/users/Kureev/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T12:57:27Z","updated_at":"2016-02-26T12:57:27Z","body":"Got it. To be honest I never tried to use something else than Jest for testing react-native components. But anyway, I don't get why it doesn't catch up you react from the node_modules. Are you sure that version of the react you're installing is compatible with [this one](https://github.com/facebook/react-native/blob/master/package.json#L119-L121)?"}}