re-start icon indicating copy to clipboard operation
re-start copied to clipboard

Unmeet peerdependencies

Open piranna opened this issue 8 years ago • 5 comments

npm WARN [email protected] requires a peer of react@^15 but none was installed.
npm WARN [email protected] requires a peer of react@^15 but none was installed.
npm WARN [email protected] requires a peer of [email protected] || 15.5.x but none was installed.
npm WARN [email protected] requires a peer of react@^15.5.4 but none was installed.
npm WARN [email protected] requires a peer of react@^15 but none was installed.
npm WARN [email protected] requires a peer of react-native@~0.42.0 but none was installed.
npm WARN [email protected] requires a peer of react@~15.4.1 but none was installed.

How can this be fixed? It's the first time that I works with ReactNative...

piranna avatar Jul 03 '17 09:07 piranna

There are dependencies conflict, react-dom requires [email protected] but other dependencies requires [email protected]...

piranna avatar Jul 03 '17 10:07 piranna

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)?

JackWells avatar Nov 01 '17 10:11 JackWells

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.

piranna avatar Nov 01 '17 11:11 piranna

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.

JackWells avatar Nov 02 '17 07:11 JackWells

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.

piranna avatar Nov 02 '17 08:11 piranna