Replies: 2 comments
-
|
Seems to be not specifically with zValidator. Even when I write my own validator it comes back with the same: z.infer issue? this however, works fine: |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Issue solved - culprit was using multiple versions of Zod in a monorepo. Removed all references to zod in package.json throughout, deleted node_modules, installed zod at root package and reinstalled. I'm using bun workspaces but I don't think that was an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm getting typescript infinite depth warnings every time I use zValidator (and other uses of Zod as well in Hono/Bun).
My Schema type:
My route handler:
The error is:
Literally no idea whats happening - any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions