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

Missing Zod Schemas when previewFeature fieldReference is enabled #72

Open
yangricardo opened this issue Feb 28, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@yangricardo
Copy link

Bug description

image

Hi,
when i specify in prisma.schema the preview feature fieldReference, and build the application, some files identified to be imported are missing, like in the image above.

How to reproduce

Add fieldReference in some prisma.schema file

generator client {
provider = "prisma-client-js"
// previewFeatures = ["fullTextSearch", "fullTextIndex", "tracing", "metrics", "orderByNulls", "filteredRelationCount", "fieldReference"]
previewFeatures = ["fullTextSearch", "fullTextIndex", "tracing", "metrics", "orderByNulls", "filteredRelationCount"]
}

Expected behavior

To generated the imported referenced in files

Prisma information

Add fieldReference in some prisma.schema file

generator client {
provider = "prisma-client-js"
// previewFeatures = ["fullTextSearch", "fullTextIndex", "tracing", "metrics", "orderByNulls", "filteredRelationCount", "fieldReference"]
previewFeatures = ["fullTextSearch", "fullTextIndex", "tracing", "metrics", "orderByNulls", "filteredRelationCount"]
}

Environment & setup

NodeJS 18, PostgresSQL 14+

Prisma Version

@prisma/client": "^4.11.0",
"prisma": "4.11.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants