nx: NestJS package.json is not having dependencies after upgrading to 15.9.2

Current Behavior

NestJS package.json is not having all the dependencies after upgrading to 15.9.2. In the previous version, 15.8.1 it was working. Seems this bug again came up.

Expected Behavior

package.json is generated with all the dependencies for the NestJS application.

GitHub Repo

No response

Steps to Reproduce

  1. Run the NestJS build and see the package.json in the dist folder. It has only the “tslib” dependency and all other dependencies are missing.

Nx Report

NA

Failure Logs

No response

Additional Information

No response

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 21 (14 by maintainers)

Most upvoted comments

This definitely expends beyond @nrwl/nest, I am seeing the same thing on @nrwl/node and @nrwl/wepback, as well from 15.9.0 onward. Likely some shared piece of configuration indeed.

@mandarini I would rather say no. tslib is there but everything else is not.

I’ve been hit with this using @nrwl/webpack:webpack on 16.0.0.beta.5 as well. I fixed it by recreating the lockfile with the latest version of pnpm – in particular, check that the lockfileVersion is set to '6.0' after recreating the lockfile. It makes me think that this error comes from a parsing mismatch between versions of the lockfile.