You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following schema, Prisma 4.8 will generate two different type MemberRoleArgs lines in .prisma/client/index.d.ts. The first MemberRoleArgs type corresponds with the MemberRole model. The second type corresponds with the Member.role field.
Hi @itsgiacoliketaco, closing this is as a duplicate of #17005. This was indeed a regression introduced in prisma@4.8.0 that should be fixed by the next release
Bug description
Given the following schema, Prisma 4.8 will generate two different
type MemberRoleArgs
lines in.prisma/client/index.d.ts
. The firstMemberRoleArgs
type corresponds with theMemberRole
model. The second type corresponds with theMember.role
field.This issue is new as of Prisma 4.8.0; it does not affect 4.7.0 or below.
How to reproduce
prisma generate
tsc --noEmit
Expected behavior
Prisma always generates unique identifiers for helper types.
Perhaps the type for
Member.role
could be namedMember_RoleArgs
instead!Prisma information
Minimal Prisma schema to produce this error is given above.
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: