Closed Usama-Tahir closed 1 year ago
Hi @Usama-Tahir, Have you tried upgrading nestjs from version 8.0.0 to version 9.0.0 and then later to version 10.0.0 ? let's say a step by step update, try to do the same procedure also with prisma.
We can't help you without seeing a minimum reproduction repository.
As @Tony133 suggested above, we'd recommend you to first upgrade to v9 and then later on to v10, after addressing all breaking changes between major releases. Also, make sure that the version of @nestjs/core
always matches versions of the following packages: @nestjs/common
, @nestjs/websockets
, @nestjs/microservices
and all @nestjs/platform-...
.
Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.
Is there an existing issue for this?
Current behavior
Hey all, I am in the middle of upgrading my Nestjs Graphql API to
^10.0.5
and I am running intoJavaScript heap out of memory
issues. The server doesn't start at all and crashes after 15-30 seconds. I am usingprisma
and I think thisJavaScript heap out of memory
issue might be originating from that. The app works fine on@nestjs/core: ^8.0.6
and@prisma/client": "^4.13.0"
but I am getting issues on the following packages.Minimum reproduction code
Sorry I don't have a codesandbox that reprocues this bug. Please see the
Other
tab.Steps to reproduce
I think this issue is very specific to my app that is using Prisma as an ORM.
Upgrade the
@nestjs/core
and@prisma/client
to the following versions and this error may pop up in applications that are using Prisma.Expected behavior
The application should not throw
JavaScript heap out of memory
after upgrading to@nestjs/core: "^10.0.5"
versionPackage
Other package
@prisma/client
NestJS version
^10.0.5
Packages versions
Node.js version
v18.14.0
In which operating systems have you tested?
Other
I will see if I am able to create a sandbox with the repro steps but I am afraid it won't be easy to reproduce.