Describe the bug
After adding the zod generator to my Prisma schema, the prisma generate command fails without outputting any error. This is the case when using the provider zod-prisma-types and npx zod-prisma-types.
When generating without the zod generator, the generation exits successfully.
$ npx prisma generate
Environment variables loaded from ../.env
Prisma schema loaded from schema.prisma
Error: Generator "zod-prisma-types" failed:
Package versions (please complete the following information):
zod: 3.21.1
prisma: 5.14.4
Additional context
generator client {
provider = "prisma-client-js"
}
generator zod {
provider = "zod-prisma-types"
}
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
email String @unique
gender String
religion String
timestamp DateTime
visits Visit[]
}
model Visit {
id Int @id @default(autoincrement())
userId Int
user User @relation(fields: [userId], references: [id])
timestamp DateTime
}
Describe the bug After adding the zod generator to my Prisma schema, the
prisma generate
command fails without outputting any error. This is the case when using the providerzod-prisma-types
andnpx zod-prisma-types
. When generating without the zod generator, the generation exits successfully.Package versions (please complete the following information):
3.21.1
5.14.4
Additional context