P
Prisma•2mo ago
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.
3 Replies
Prisma AI Help
Prisma AI Help•2mo ago
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
Nurul
Nurul•2mo ago
Hey 👋 Is your repository open source? Anyway I can try to reproduce this? Is this happening on latest prisma version 6.13.0?
console
consoleOP•2mo ago
Hi, Sorry for late response, got lot of tasks today :sadge: Unfortunately it is not open source. I am working with monorepo based on https://create.t3.gg/ and tried it with 6.12 and 6.13 as well. All db stuff is in db package and imported to trpc api package that later is serve in nextjs app.
Create T3 App
Create T3 App
The best way to start a full-stack, typesafe Next.js app.

Did you find this page helpful?