Closed type9 closed 6 months ago
Actually the problem fixed itself when I reverted back to prisma 5.13. It was caused by an auto upgrade to 5.14. This might or might not be worth looking into further.
"dependencies": {
"@prisma/client": "5.13.0",
"prisma": "5.13.0"
}
Heya, this issue is a good source of information, it solved my problems... ;)
a. can we keep it open or label it as a known issue? b. will this be further triaged, so that we know where the root cause is?
thanks!
and thanks for all the work on this project!!
Hi all! In the 5.14.0 release, prisma added createManyAndReturn
. Perhaps this is not implemented yet in zod-prisma-types
?
Thanks for the great work! 🎉
Hi! I had the exact same problem with prisma 5.14.0, downgrade to 5.13.0 as mentioned by type9, this also fixed the issue.
I agree with bingneef on this one!
Hi all! In the 5.14.0 release, prisma added
createManyAndReturn
. Perhaps this is not implemented yet inzod-prisma-types
?Thanks for the great work! 🎉
Hello, I confirm prisma downgrade from 5.14.0 to 5.13.0 fixed this issue. Hopping @chrishoermann will help us to support this breaking change. Thx.
Thanks for reporting this issue. I'm currently short on time since I have to finish a milestone in a project in the next weeks but I'll try to look into it the next days.
@capitlux, @type9, @goern , @bingneef, @TomJuzanx I implemented a fix in the latest version 3.1.7
. It indeed was the newly added createManyAndReturn
function that created the problems. The generator created some schemas that had no corresponding type in the Prisma
namespace which caused the error. Please let me know if this fixes the issue on your side
@chrishoermann Works perfectly!
Closing since this should be resolved!
Describe the bug Hi Chris. Thanks for the work on the package so far. I'm having types issues being created by zod-prisma-types trying to extract types that don't exist in generated prisma client. Notably it was working for me at one point and started breaking when I ran an unrelated
pnpm install
as part of my monorepo setup. I want to say at one point there were a few type issues also related to my User model but they have since gone away. I was wondering if you could point to what could be causing this mismatch of expected output from prisma and zod-prisma-typesPackage versions (please complete the following information):
Additional context Add any other context about the problem here.