-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peer Dependency installed incorrectly #1661
Comments
FWIW, this was fixed by moving react from "dependencies" to "peerDependencies" and "devDependencies" in direct dependencies of the project in question. React was erroneously included as a dependency in some internal libraries of ours, when it should have been a peer and dev dependency. However, it should be noted that npm@3 was able to install dependencies in a way where the direct react dependency satisfied react-relay's peer dependency on react. |
Some additional info
Package "vg" had react both in devDependencies and peerDependencies
Package "admin-layout" had react and react-relay dependencies.
Package |
I've been experiencing a strange issue off and on with
|
I'm getting this same issue with yarn@0.24.5 there is a repro over here: https://github.com/ds300/styled-components-native-warning-example in this case |
@ds300 - I tried reproducing this with your instructions and it seems to be getting fixed with #4478 or an earlier PR. That said it still prints the following warning, which seems legit:
I'm going to go ahead and close this but feel free to reopen if you think something is still not right. |
Probably a bug.
I have a project that depends on
"react": "^15.3.0"
&"react-relay": "^0.9.2"
React-relay states it's peer dependencies like this
"react": "^15.0.0 || ^0.14.0"
Now when installing with yarn, for some reason, react-relay get's a separate version of react.
I end up with this
node_modules/react@15.3.2
node_modules/react-relay/node_modules/react
react@15.1.0
Shouldn't
react-relay
be usingreact@15.3.2
?Maybe some other package could be causing this, any ideas?
Running on
Yarn 0.16.1
OSX 10.11.6
Node v6.9.1
The text was updated successfully, but these errors were encountered: