prisma-trpc-generator icon indicating copy to clipboard operation
prisma-trpc-generator copied to clipboard

Missing Zod Schemas when previewFeature fieldReference is enabled

Open yangricardo opened this issue 3 years ago • 0 comments

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",

yangricardo avatar Feb 28 '23 20:02 yangricardo