-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript errors in the generated router #78
Comments
I am having the same issue since today 🙏 |
Seems to be a zod issue: Downgrading to zod 3.21.1 worked for me. |
Just hit this issue today also. |
I also hit this issue. Subbing to notifications. |
I am having the same issue Here I am getting a whole list of errors 106 Errorsnonexisting prisma exports: type issues:are the majority Prisma: "^5.3.0" Please let me know of a work around |
Bug description
The generated router at
generated/routers/Post.router.ts
has the following error
How to reproduce
Expected behavior
No response
Prisma information
generator client {
provider = "prisma-client-js"
}
generator trpc {
provider = "prisma-trpc-generator"
// output = "../../trpc/init/src/generated"
output = "./generated"
withMiddleware = "../../trpc/init/src/middleware"
withShield = false
contextPath = "../../trpc/init/src/context"
trpcOptionsPath = "../../trpc/init/src/trpcOptions"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
posts Post[]
books Book[]
}
model Post {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
title String
content String?
published Boolean @default(false)
viewCount Int @default(0)
author User? @relation(fields: [authorId], references: [id])
authorId Int?
likes BigInt
}
/// @@Gen.model(hide: true)
model Book {
id Int @unique
title String
author User? @relation(fields: [authorId], references: [id])
authorId Int?
}
model Map {
key String @id
value String
}
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: