You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was just bit by this. Are you also using nohoist in your root package.json? If so, I believe it's a duplicate of #5520. As soon as I stopped using nohoist this problem went away for me; though the other problems I had that nohoist was avoiding came back of course.
Bug description
Yarn seems to treat peerDependencies as regular dependencies when workspace mode. This happens for both hoisted and nohoisted modules.
In simplest workspaces setup with workspaces: ''alpha", "beta", "gamma", "delta"
master package.json
alpha:
beta:
gamma:
delta:
Command
What is the current behavior?
yarn install in this repo installs a copy of react-native inside
react-native-svg
:What is the expected behavior?
react-native
is a peer dependency of react-native-svg (with version match "*" — any version) and isn't supposed to be installed into react-native-svg/node_modules accorrding to https://classic.yarnpkg.com/en/docs/dependency-types/#toc-peerdependenciesEnvironment
v13.2.0
1.22.4
The text was updated successfully, but these errors were encountered: