-
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
Lockfile generated by @nx/next:build
is invalid
#17873
Comments
I've encountered this issue in a vite based project as well. |
Note: this is potentially linked to #17853 rather than being a specific NextJS issue |
@rosettaroberts-impact @ganlhi FYI, i have made #18192 to tackle the issue |
I saw that, thank you! In the meantime I built a custom executor to fix the file afterwards, but it's not very future proof 😅 |
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
When using Yarn 3 in a Nx workspace, running
@nx/next:build
withgenerateLockfile
generates a lockfile that contains an empty package name:Expected Behavior
The generated lockfile should be valid.
GitHub Repo
https://github.com/ganlhi/nx-next-lockfile-issue
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
No response
The text was updated successfully, but these errors were encountered: