-
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
generatePackageJson
creates out-of-sync lock file
#22386
Comments
Any updates on how this is going? This is a significant blocker for us that is preventing us from moving to node 18/20. |
I have the same issue with the missing A common scenario in a NestJS app is to import the |
Same issue here, with the following
The generated
The generated @fgirardey for the record, one of the NestJs app that fails the same way doesn't have any explicit reference to |
This comment was marked as outdated.
This comment was marked as outdated.
Apologies, I have just seen the attached repo, I still get an error when following the steps in the OP in 19.2.2 We will look into this |
…26539) Failing new test case covering the broken scenario: https://staging.nx.app/runs/s0YaQGUVgq/task/nx%3Atest <!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> ## Current Behavior <!-- This is the behavior we have today --> ## Expected Behavior <!-- This is the behavior we should expect with the changes in this PR --> ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes #22386
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
Running
npm ci
on the generated package-lock throws an error:Expected Behavior
Should be able to clean install, without an additional syncing (e.g. running
npm i
).GitHub Repo
https://github.com/timonmasberg/nx-gen-lock-bug
Steps to Reproduce
npx nx build nx-gen-lock-bug --prod
npm ci
in `dist/apps/nx-gen-lock-bug``Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
I added some dependencies which made the package lock invalid (see
package.json
andapp.module.ts
), on a clean workspace generated with the nestjs template it works. Furthermore, I believe this was working until we migrated from 17.2.8 to 18.1.2, which might be related.The text was updated successfully, but these errors were encountered: