Skip to content
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

[BUG] Not generating all schemas when using prismaSchemaFolder #262

Open
kachar opened this issue Jul 5, 2024 · 0 comments
Open

[BUG] Not generating all schemas when using prismaSchemaFolder #262

kachar opened this issue Jul 5, 2024 · 0 comments
Assignees
Labels
bug (unconfirmed) Could be a bug

Comments

@kachar
Copy link

kachar commented Jul 5, 2024

Describe the bug

When prismaSchemaFolder preview feature is enabled only the zod schema from the main schema.prisma file is getting generated.

Package versions (please complete the following information):

  • zod: 3.23.8
  • prisma: 5.16.1

Additional context

https://www.prisma.io/docs/orm/prisma-schema/overview/location#multi-file-prisma-schema

generator client {
    provider        = "prisma-client-js"
    previewFeatures = ["prismaSchemaFolder"]
}

generator zod {
    provider                         = "zod-prisma-types"
    createInputTypes                 = false
    createOptionalDefaultValuesTypes = true
    addInputTypeValidation           = true
}
@kachar kachar added the bug (unconfirmed) Could be a bug label Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unconfirmed) Could be a bug
Projects
None yet
Development

No branches or pull requests

2 participants