Open atanaskanchev opened 1 year ago
I am having the same issue since today 🙏
Seems to be a zod issue: https://github.com/colinhacks/zod/issues/2184
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
nonexisting prisma exports:
AccountUncheckedUpdateManyWithoutAccountsInput'. Did you mean 'AccountUncheckedUpdateManyWithoutUserInput'?
are the majority
Type 'undefined' is not assignable to type 'string | AccountProviderProviderAccountIdCompoundUniqueInput'.
Type 'number | number[] | undefined' is not assignable to type 'number[] | undefined'.
Type 'number | number[] | null | undefined' is not assignable to type 'number[] | null | undefined'.
Prisma: "^5.3.0" zod: "3.21.1" @prisma/client: "5.3.0", DB: MongoDB
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