Prisma Client v6.7.0 issue
Hi guys, I was setting up a Nodejs server using typescript.
To query my postgresql database I'm using Prisma ORM, I setted up it following the documentation for relational databases step by step but when I stat Nodejs server it returns this error:
I don't know why the server returns this error beacuse I have already configured Prisma and Prisma client and also I have already run the command .
I have attached my file and .
8 Replies
You selected the carefully hand-crafted route. A dev artisan will respond soon. Meanwhile, the
#ask-ai
channel awaits if you're curious!I’m unable to open your schema on mobile, but are you using a custom output path? If so, you should import from that and not from
@prisma/client
Thanks for your reply but the output path is the same written by Prisma Client and is the same written on the documentation.

Yes, I meant in your code, not in the Schema. You most likely have this line somewhere:
I have created this simple server, but when I run it it still returns the same error.
Yup, change the first line of
utils/prismaClient.ts
. it should have the relative path to your generated client, NOT @prisma/client
.Thaks bro for helping me, now it works and sorry for my oversight on
utils/prismaClient.ts
.No problem! Going to mark this as resolved