Cannot find name '$PrismaModel'
due to feature extendedWhereUnique
with preview feature fieldReference
#16997
Closed
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/typescript
Issue for tech TypeScript.
topic: extendedWhereUnique
Preview Feature
topic: fieldReference
topic: postgresql
topic: previewFeatures
Issue touches on an preview feature flag
topic: prisma-client
Milestone
Bug description
Using the following ref:
With Prisma versions 4.5+ yields:
node_modules/.prisma/client/index.d.ts:20937:43 - error TS2304: Cannot find name '$PrismaModel'.
across the entire index.d.ts file
However, when either
fieldReference
orextendedWhereUnique
are removed, the file compiles properly.We cannot use both
fieldReference
andextendedWhereUnique
but our code heavily relies on them.How to reproduce
Expected behavior
Should properly compile
Prisma information
Environment & setup
Prisma Version
Tested all versions
The text was updated successfully, but these errors were encountered: