Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*AndReturn* types not found #264

Open
oldo opened this issue Jul 10, 2024 · 3 comments
Open

*AndReturn* types not found #264

oldo opened this issue Jul 10, 2024 · 3 comments
Assignees
Labels
bug (unconfirmed) Could be a bug

Comments

@oldo
Copy link

oldo commented Jul 10, 2024

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?
8243ffa

Screenshots

image

Package versions (please complete the following information):

  • zod: 3.22.3
  • prisma: 5.15.2
@oldo oldo added the bug (unconfirmed) Could be a bug label Jul 10, 2024
@oldo oldo changed the title *AndReturnCreateManyArgs not found *AndReturn* types not found Jul 10, 2024
@fogx
Copy link

fogx commented Aug 20, 2024

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
Copy link

anthonykrivonos commented Sep 16, 2024

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
Copy link
Author

oldo commented Nov 1, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unconfirmed) Could be a bug
Projects
None yet
Development

No branches or pull requests

4 participants