Error: collision detection detected

when I start the development server with this command:

initiating reaction

then I get the error:

Error building DepdendencyGraph:

Error: collision detection detected: / home / awesomepankaj / Work / lifemakerProjects / workingLifemaker / LifeMaker / node_modules / response-native / node_modules / react-tools / src / shared / vendor / core / dom / focusNode. js encounters / Home / awesomepankaj / Work / lifemakerProjects / workingLifemaker / LifeMaker / node_modules / react native-modalbox / node_modules / react native / node_modules / react-tools / SRC / Shared / provider / core / home / focusNode.js

reaction-native version 0.13

Ubuntu 14.04

+5
source share
5 answers

If you are stuck here.

This is a quick fix.

You can delete the react-native folder from node_module/react-native-router/node_module/react-native

Instead, you can use react-native from node_module/react-native .

+13
source

Probably because you have several / node_modules folders in one of your subfolders.

+3
source

If you have a directory path, for example:

 app/ ios/ Pods/ React/ node_modules/ node_modules/ src/ index.ios.js package.json 

Then you can just run

 $ ./node_modules/react-native/packager/packager.sh --projectRoots `pwd`/src --projectRoots `pwd`/node_modules 

More details:

https://github.com/facebook/react-native/issues/3440

+2
source

For those who still have this problem or may have it, I suggest you upgrade npm to the latest version, which will node_modules out all the modules in the node_modules folder, which will reduce the risk of package duplication.

+2
source

If you used CocoaPods , you should delete the react-native folder with node_module / react-native / node_module.

My version of CocoaPods is 0.39.Node version 5.3.0.React. The original version is 0.14.2.

When I delete a folder with variable rights, it works.

-2
source

Source: https://habr.com/ru/post/1234248/


All Articles