pnpm version: 8.6.0
Code to reproduce the issue:
https://github.com/klingenm/dedupe-peer-dependents-repro
Expected behavior:
The peer:
/@apollo/client/3.7.1(graphql@15.8.0)(react@16.8.0) maps to /@apollo/client/3.7.1(graphql@15.8.0)(react-dom@16.8.0)(react@16.8.0)
and
/@apollo/client/3.7.1(graphql@15.8.0)(react@18.2.0) maps to /@apollo/client/3.7.1(graphql@15.8.0)(react-dom@18.2.0)(react@18.2.0)
Actual behavior:
Both:
/@apollo/client/3.7.1(graphql@15.8.0)(react@16.8.0)
/@apollo/client/3.7.1(graphql@15.8.0)(react@18.2.0)
maps to
/@apollo/client/3.7.1(graphql@15.8.0)(react-dom@18.2.0)(react@18.2.0)
Additional information:
This is possibly a duplicate of #6200.
node -v prints: v16.15.1 (also tested on 18)
- Windows, macOS, or Linux?: macOS
pnpm version: 8.6.0
Code to reproduce the issue:
https://github.com/klingenm/dedupe-peer-dependents-repro
Expected behavior:
The peer:
/@apollo/client/3.7.1(graphql@15.8.0)(react@16.8.0)maps to/@apollo/client/3.7.1(graphql@15.8.0)(react-dom@16.8.0)(react@16.8.0)and
/@apollo/client/3.7.1(graphql@15.8.0)(react@18.2.0)maps to/@apollo/client/3.7.1(graphql@15.8.0)(react-dom@18.2.0)(react@18.2.0)Actual behavior:
Both:
/@apollo/client/3.7.1(graphql@15.8.0)(react@16.8.0)/@apollo/client/3.7.1(graphql@15.8.0)(react@18.2.0)maps to
/@apollo/client/3.7.1(graphql@15.8.0)(react-dom@18.2.0)(react@18.2.0)Additional information:
This is possibly a duplicate of #6200.
node -vprints: v16.15.1 (also tested on 18)