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
During the migration from NX 19.0.8 to 19.4.2 and PNPM 8.15.7 to 9.5 we encountered the following problem.
Using PNPM 9.5 with the @nx/webpack:webpack and the flag generatePackageJson set to true, the generation of the package.json and the pnpm-lock.yaml are incorrect because of the overrides present in the lock but not in the package.
Because of that, when we try to generate the build for production with the following command pnpm i --prod --frozen-lockfile we obtain:
ERR_PNPM_LOCKFILE_CONFIG_MISMATCH Cannot proceed with the frozen installation. The current "overrides" configuration doesn't match the value found in the lockfile
This problem appears even with a fresh installation.
Expected Behavior
The correct behaviour is that the package.json and the pnpm-lock.yaml are aligned and the command pnpm i --prod --frozen-lockfile will work just fine.
Current Behavior
During the migration from NX 19.0.8 to 19.4.2 and PNPM 8.15.7 to 9.5 we encountered the following problem.
Using PNPM 9.5 with the
@nx/webpack:webpack
and the flaggeneratePackageJson
set to true, the generation of the package.json and the pnpm-lock.yaml are incorrect because of the overrides present in the lock but not in the package.Because of that, when we try to generate the build for production with the following command
pnpm i --prod --frozen-lockfile
we obtain:This problem appears even with a fresh installation.
Expected Behavior
The correct behaviour is that the package.json and the pnpm-lock.yaml are aligned and the command
pnpm i --prod --frozen-lockfile
will work just fine.GitHub Repo
https://github.com/ZanchiStefano/nx-pnpm-error
Steps to Reproduce
With the repo linked:
pnpm exec nx run nx-pnpm-error:build:production
dist
folder generated inside the folderapps/nx-pnpm-error
You can see there the anomaly of the package and pnpm lock.
Nx Report
Failure Logs
No response
Package Manager Version
9.5.0
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: