mhamid3d
Explore posts from serversPPrisma
•Created by mhamid3d on 4/13/2025 in #help-and-questions
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?5 replies
PPrisma
•Created by mhamid3d on 4/4/2024 in #help-and-questions
Check constraint migration fails with syntax error
I made the following migration file and ran the migration:
And it results in this error:
2 replies