We've got two repos, both of which have react-native
as dependencies; one being the actual RN app and the other a UI package with a number of custom react-native components in it.
When I symlink (using npm link
) the UI package with the RN app and try start the js server, it throws the follow error:
This error is caused by a @providesModule declaration with the same name across two different files.
It seems to be because it's picking up the same RN files inside the UI package's copy of react-native
.
I know there's a problem with watchman not working with symlinks, however I think this is different - to do with there being two react-native
modules. Does anyone know a way to get around this please? I've made sure that both are the same version number but still nothing.
This has been destroying my day as well. as a quick workaround, you can just go delete the folder of react-native out of the node_modules folder within react-native-router-flux.(node_modules > react-native-router-flux > node_modules > react-native) Ugly, but will at least get you up and running for the time being
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With