PrismaP
Prisma6mo ago
3 replies
console

Generated Prisma Client

Hi,
I've recently tried to move to generated prisma client but got stuck with lot's of typescript errors mostly to lack of infering (I guess). I needed to type few things myself but I am still strugling with others.

For example I am using trpc, I have trpc prodedure names protectedProcuder that ensure that user is authorized to access. Inside I use some prisma calls and got this error: "The inferred type of 'protectedProcedure' cannot be named without a reference to '../node_modules/@acme/db/dist/generated/prisma/enums'. This is likely not portable. A type annotation is necessary."

I am wondering if it can have something to do with tsconfig or like general monorepo setup I use?
Would love to get some points to check.
Was this page helpful?