Where to find PrismaClientKnownRequestError with the new generated client
I cannot find the right place to import PrismaClientKnownRequestError from with the new version. This is my schema:
-
import { Prisma } from "@prisma/client"; does not exist
- The generated client does not expose the type in a public way
- The only place I can get it from is import { PrismaClientKnownRequestError } from "~/generated/prisma/internal/prismaNamespace"; which seems to be wrong, it is depending on internals
How do I do this?2 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 got it