Replies: 3 comments
-
If you want me to open a issue jsut hmu |
Beta Was this translation helpful? Give feedback.
0 replies
-
I seem to be running into similar issues and I can't really figure out the problem, I thought it may be optional relations at first but that doesn't seem to be the culprit. Similar log (with type string not assignable to type 'undefined'):
And my schema: generator trpc {
provider = "prisma-trpc-generator"
withZod = true
withMiddleware = false
withShield = false
isGenerateSelect = true
isGenerateInclude = true
contextPath = "../components/trpc/context"
}
model User {
id String @id @default(cuid())
email String @unique
emailVerified DateTime?
password String
accounts Account[]
sessions Session[]
deleted Boolean @default(false)
index Int? @unique
vorname String
name String
titel String?
geburtsdatum DateTime?
skills Skill[]
zeitraeume Zeitraum[] @relation(name: "zeitraeume")
@@map("users")
}
model Zeitraum {
id String @id @default(cuid())
start DateTime
ende DateTime
user User @relation(name: "zeitraeume", fields: [userId], references: [id])
userId String
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I ran into this issue and found this: colinhacks/zod#2171. The issue is related to zod. I resolved it by downgrading to [email protected]. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have this error in the generated types:
Anything that I can do?
My schema.prisma:
My package.json versions:
Beta Was this translation helpful? Give feedback.
All reactions