-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Verify latest release
- I verified that the issue exists in the latest pnpm release
pnpm version
10.11.1
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI deploy
Link to the code that reproduces this issue or a replay of the bug
https://github.com/vladadaba/pnpm-error-repro
Reproduction steps
Linked repository has pnpm monorepo with 2 NestJS apps (generated with nest new example-app). There is a common Dockerfile in monorepo root. Run:
docker build --build-arg PROJECT_DIR=apps/example-app -t my-service .
Describe the Bug
Docker build fails with ERR_PNPM_OUTDATED_LOCKFILE even though running pnpm install says:
Lockfile is up to date, resolution step is skipped
Already up to date
More detailed output and other observations are documented in README.md in the repro repo. In the real project we have ~20 overrides (the ones that were removed in this commit), but I've managed to narrow it down to babel-loader and react-dom causing this issue. If the other ones are left and these 2 removed, everything works. Also, on host machine (MacOS), it works with --legacy flag.
Expected Behavior
Install and deploy works correctly in docker build.
Which Node.js version are you using?
20.19.0
Which operating systems have you used?
- macOS
- Windows
- Linux
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response