chrishoermann / zod-prisma-types

Generator creates zod types for your prisma models with advanced validation
Other
662 stars 50 forks source link

*AndReturn* types not found #264

Open oldo opened 4 months ago

oldo commented 4 months ago

Describe the bug I just updated Prisma to the latest version:

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

And now when I run generate I get a whole series of errors saying that each model within my project doesn't have an exported member from prisma client of {modelName}AndReturnCreateManyArgs not found.

Perhaps related to this feature? https://github.com/chrishoermann/zod-prisma-types/commit/8243ffa23d5324dc746badff6758215b70a28eaa

Screenshots

image

Package versions (please complete the following information):

fogx commented 3 months ago

I have the same issue. #252 was supposed to fix this issue, no? @chrishoermann

.prisma/client/index".Prisma' has no exported member named '{modelName}CreateManyAndReturnArgs

anthonykrivonos commented 2 months ago

Nothing to add, but seeing this in my application too. Putting on your radar @chrishoermann

zod: 3.22.3 zod-prisma-types: 3.1.8 prisma: 5.16.2

oldo commented 3 weeks ago

Just discovered that I had an older version of zod-prisma-types pinned in my package.json 😱 I upgraded to latest and it resolved the issue!