Closed lwhiteley closed 1 year ago
Hey @lwhiteley
I cloned your repo, ran pnpm i
, nx serve core-api
and curl localhost:3333/health
.
Everything seemed to work fine:
I also ran pnpm ls rxjs
and got this:
Incase it is of any consequence, my pnpm
version is 7.29.0
@Coly010 awesome you are correct.. an updated version of pnpm resolves the issue.
tried with
pnpm: 7.30.5
you can handle closing the issue if there is nothing further to check
Thanks for checking!
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
Currently pnpm is resolving two different versions of rxjs in a repo with nestjs 9.
after install, the pnpm lock file will have similar content
I added a package
nest-pino
that uses specific rxjs 7 api and that's where the issue started to show up. There could be more areas where having two different major versions is a problem but its just the one i happened to run intoExpected Behavior
Nx should not be using a different major version of rxjs from nestjs ^9
Github Repo
https://github.com/lwhiteley/rxjs-repro.git
Steps to Reproduce
pnpm i
pnpm nx serve core-api
curl localhost:3333/health
Please note that the error happens in the LogInterceptor for nestjs-pino
commenting this line, should allow the api to work but it is still required for the setup
see: https://github.com/lwhiteley/rxjs-repro/blob/main/apps/core-api/src/helpers/configureLogging.ts
Nx Report
Failure Logs
Additional Information
Notes: