P
Prisma4mo ago
EJ-SR

(alias) type PrismaClient = any

after generating types using npx prisma generate i got is this normal? (alias) type PrismaClient = any (alias) const PrismaClient: any
4 Replies
Prisma AI Help
Prisma AI Help4mo ago
You're in no rush, so we'll let a dev step in. Enjoy your coffee, or drop into #ask-ai if you get antsy for a second opinion!
Nurul
Nurul3mo ago
Could you share your code snippet on how you are instantiating and using PrismaClient?
EJ-SR
EJ-SROP3mo ago
Hi already solved it instead of importing from
@prisma/client
@prisma/client
I import using
@generated/client/prisma
@generated/client/prisma
Nurul
Nurul3mo ago
Glad to hear that! I believe the issue occured because you were genrating prisma client at a custom location as per our recommendation but importing it from node_modules. Importing from generated prisma client fixed the issue 👍

Did you find this page helpful?