-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Broken generated pnpm lock file (ERR_PNPM_ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY) #17492
Comments
I found a workaround by adding manual step to run |
I've just experienced this same issue with set of different private packages. I think the issue has to do with the fact that the same dependency (in OP's case Dependency Tree: NOTE: This is not the entire dependency tree, I have trimmed it for the sake of brevity.
During initial graph construction (pre-pruning), the package name selected for the node with the key If I patch |
Actually they might be related after all. |
@diginikkari, this is an interesting issue. Thank you for the reproduction, I will have to dig deeper to see why the dependencies are not correct. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I'm using
@nx/webpack:webpack
executor with"generatePackageJson": true
.When I'm building production build of app and deploying it I'm getting following error:
Expected Behavior
lock file shoud be correct and there should be no error.
GitHub Repo
https://github.com/diginikkari/nx-next
Steps to Reproduce
pnpm nx g @nx/react:app my-app --bundler=webpack
glob
as dev dependencypnpm install -d [email protected]
(this will add[email protected]
dependency)msw
as dependencypnpm install msw
(this will add[email protected]
dependency)import { rest } from 'msw';
to app to include msw as dependency for apppnpm nx run my-app:build:production
dist
folder to outside of workspace and run 'pnpm install' inside it.Nx Report
Failure Logs
No response
Operating System
Additional Information
I tried it with
16.3.2
and with latest beta16.4.0-beta.2
.Lockfile generation seems to select
/[email protected]
entry into the generated lock file even though there is onlystring-width: 4.2.3
dependency in app's dependencies.The text was updated successfully, but these errors were encountered: