Open piranna opened 7 years ago
There are dependencies conflict, react-dom
requires react@15.5.4
but other dependencies requires react@15.4.2
...
So following the instructions, we get the errors as reported here. Then we run the script "node scripts/addDevDependencies.js" (after cd-ing into the project folder, first, or it won't work) which is supposed to fix this, but we get some of the same errors, again.
How do we install the various needed versions or 'react' which will meet the dependencies of react-dom, react-native, react-router, and react-test-renderer?
Maybe a specific version of Node needs to be installed (the directions in the linked page for that step do not specify which version)?
Seems it's a bit of mix-and-match, I have been updating web dependencies but seems it broke Android support. We'll need to add tests to be sure it works on all supported platforms, pull-requests are welcome.
Ok - I'm new to this (never used react-native framework before), so this is probably not the way it "should be done" - but this is how I got "npm run web" to work on my system: https://www.pastiebin.com/embed/59facbd91864a I haven't tried android and other builds, yet. I'll update if I find a better combination of versions and/or when I learn how these changes could be correctly formed into a pull-request of the project.
I think is more a problem of versions conflicts making several versions of the same package to be installed. Does anyone knows how to detect this situation and what packages are causing it? Having installed a single version of each dependency without warnings should fix that.
How can this be fixed? It's the first time that I works with ReactNative...