Enable zod 4 support for zodOutputToConvex
Getting a type error when attempting to use zodOutputToConvex with zod 4. Importing z from "zod/v3" works fine.

2 Replies
I'm also running into this issue
This library (https://github.com/panzacoder/zodvex) and thread https://github.com/get-convex/convex-helpers/pull/701 fixed issues
GitHub
GitHub - panzacoder/zodvex: A small library for interacting with Zo...
A small library for interacting with Zod and Convex together, with Zod Codecs and Zod v4 in mind. - panzacoder/zodvex
GitHub
Zod V4 implementation by SamJB123 · Pull Request #701 · get-conve...
Ready for testing and refinement by community - but expect rough edges!
Current version includes several opinionated decisions with a goal of writing a schema once.
Uses ZodV4 internals to map Zod...