android - react-native Error building DependencyGraph -
after running react-native run-android
following error, have no idea here installed standard way using npm i
error building dependencygraph: error: naming collision detected: /users/guerilla/code/reactnative/node_modules/react-native/node_modules/fbjs/lib/csscore.js collides /users/guerilla/code/reactnative/node_modules/react/node_modules/fbjs/lib/csscore.js
two ways can work around that
it seems npm 3 handles duplicate dependencies better old versions of npm delete node_modules folder, upgrade npm 3 , run npm again, should solve problem
manually install fbjs on top level, ie add dependency in package.json file , manually delete occurences of fbjs in other modules use same 1 on top level
Comments
Post a Comment