PrismaP
Prisma10mo ago
4 replies
Mo Hamid

Why do I have both `@prisma/client` and `generated/prisma/client` in my import suggestions?

Hello,

first off the docs say:

"The install command invokes prisma generate for you which reads your Prisma schema and generates a version of Prisma Client that is tailored to your models."

This was not true for me, when I ran npm i @prisma/client, the prisma generate command was not run, I had to run it manually. Second when I try to import stuff from the client, I keep getting suggestions from both @prisma/client and my generated client, it's causing a lot of confusion. Is this normal and can I use them interchangebly?
Was this page helpful?