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
For some reason that goes beyond my knowledge, this needs of a so called @patch situation where it is resolved as above, with an empty key.
This comes the delete key function due to the existingKey is resolving to 1.22.1 and the normalised key is 1.22.3.
Probably the error comes from the idea that we are removing data from the final set (the snapshotMap) from a different set (the existingKeys). The first one does some black magic to resolve the keys whilst the second one is just getting the version from the key of the yarn.lock.
All in all I am a bit lost into what the proper solution would be but I am happy to make a PR if @meeroslav can give some input 😄
The text was updated successfully, but these errors were encountered:
Current Behavior
When using Yarn 3 in a Nx workspace, running @nx/next:build with generateLockfile generates a lockfile that contains an empty package name:
This forces an error when running
yarn install
over that lock file.Expected Behavior
The generated lockfile should be valid.
GitHub Repo
https://github.com/veimox/nx-next-lockfile-issue/tree/main
Steps to Reproduce
yarn install
to install dependencies with Yarn 3nx run my-app:build:production
dist/packages/my-app/yarn.lock
Nx Report
Failure Logs
No response
Operating System
Additional Information
This issue is the cousin of #17873 and the reproducible repo is an extension of the original in that issue from @ganlhi.
I've done some investigation as per #18192 and this issue is within the same 'logic error' but with another flavour. This is my research:
node-elastic-apm
) requires the dependency[email protected]
1.22.3
such as:@patch
situation where it is resolved as above, with an empty key.existingKey
is resolving to1.22.1
and the normalised key is1.22.3
.Probably the error comes from the idea that we are removing data from the final set (the
snapshotMap
) from a different set (theexistingKeys
). The first one does some black magic to resolve the keys whilst the second one is just getting the version from thekey
of theyarn.lock
.All in all I am a bit lost into what the proper solution would be but I am happy to make a PR if @meeroslav can give some input 😄
The text was updated successfully, but these errors were encountered: