generate output with output has weird package path on Windows
#7809
Comments
|
For any generator client {
provider = "prisma-client-js"
output = "./foo"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id String @id @default(cuid())
name String
email String @unique
password String?
posts Post[]
comments Comment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([name, email])
}
model Post {
id String @id @default(cuid())
title String
body String
published Boolean
author User @relation(fields: [authorId], references: [id])
authorId String
comments Comment[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@index([title])
}
model Comment {
id String @id @default(cuid())
text String
post Post @relation(fields: [postId], references: [id])
postId String
author User @relation(fields: [authorId], references: [id])
authorId String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Note the
./prisma\foo. The paths forrequireneed to use forward slashes on Windows as well afaik.The text was updated successfully, but these errors were encountered: