Closed joe-Thanapol closed 11 months ago
TS cannot find zod object because name mismatch ( Uppercase )
DepartmentCountOutputTypeArgsSchema
departmentCountOutputTypeArgsSchema
DepartmentCountOutputTypeDefaultArgs...
z.ZodType<Prisma.departmentCountOutputTypeDefaultArgs>
"@prisma/client": "^5.1.1" "zod": "3.21.1" "zod-prisma-types": "^2.7.9"
Update, I found out that the problem was with my prisma schema. Some models are Camel Case, some are Snake Case, So I changed all models to Camel Case and it work. Thanks for the wonderful package.
Overview
TS cannot find zod object because name mismatch ( Uppercase )
DepartmentCountOutputTypeArgsSchema
anddepartmentCountOutputTypeArgsSchema
(line 211 and 219)DepartmentCountOutputTypeDefaultArgs...
but zod-prisma-types usez.ZodType<Prisma.departmentCountOutputTypeDefaultArgs>
(line 219)Versions used
"@prisma/client": "^5.1.1" "zod": "3.21.1" "zod-prisma-types": "^2.7.9"