pnpm / pnpm

Fast, disk space efficient package manager
https://pnpm.io
MIT License
28.44k stars 950 forks source link

pnpm breaks federated modules #8192

Open Aubrey-Russell opened 2 weeks ago

Aubrey-Russell commented 2 weeks ago

Verify latest release

pnpm version

9.3.0

Which area(s) of pnpm are affected? (leave empty if unsure)

No response

Link to the code that reproduces this issue or a replay of the bug

https://github.com/Aubrey-Russell/grommet-react-mfe-issue-example

Reproduction steps

  1. pnpm install
  2. pnpm nx serve shell

Describe the Bug

image pnpm package dependencies somehow breaks everything. I know this problem is 100% caused by pnpm because yarn and npm have no issues. pnpm must somehow be breaking dependencies for federated modules specifically. It somehow causes react to eject itself and break for an unknown reason.

Expected Behavior

Like yarn and npm, it should work normally and there should be no application errors. This error did not used to occur.

Which Node.js version are you using?

v21

Which operating systems have you used?

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

KSXGitHub commented 2 weeks ago

It's probably because of version mismatch between dependencies.

Run pnpm update --latest should fix the issue: website screenshot