#Troubleshooting Hang Issue with PrismaService Injection in NestJS 10.2.6 and Prisma 5.3.1

3 messages · Page 1 of 1 (latest)

undone stump
#

I am encountering an issue when attempting to inject PrismaService, which extends PrismaClient. My application appears to hang without generating any error messages.

In my quest to resolve this issue, I conducted a search and identified two potentially related discussions. However, I noticed that both of these discussions date back to 2018.

https://github.com/nestjs/nest/issues/1129
https://github.com/nestjs/nest/issues/1277

My development environment consists of NestJS version 10.2.6 and Prisma version 5.3.1. To provide a clearer demonstration of the problem, I have created a simple repository, which can be found here:

https://github.com/Val0429/nestjs-prisma-injection-fail

GitHub

I'm submitting a... [ ] Regression [x] Bug report [ ] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submit support request here, instead post your q...

GitHub

I'm submitting a... [ ] Regression [x] Bug report [ ] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submit support request here, instead post your q...

GitHub

Contribute to Val0429/nestjs-prisma-injection-fail development by creating an account on GitHub.

undone stump
#

I've identified that the issue doesn't pertain to NestJS itself; rather, it lies with the PrismaService, which extends PrismaClient. The problem seems to arise when attempting to log the "prisma" object using "console.log(prisma)." Once I removed this particular console log statement, everything started working as expected.

knotty light