Jacob Paris We're working on a fix for this Zod 4 was published yesterday and v0 switched automatically to using it because it uses `"zod": "latest"` But the AI SDK has a dependency on `zod-to-json-schema` which has not updated to Zod 4 yet and is incompatible, so you get this error The fastest unblock would be to download/git sync your code and manually downgrade zod, then deploy through CLI/Vercel We'll get this fixed on our end as soon as we can
Simon Thanks Jacob. It ended up being the MCP SDK forcing the Zod 4 dependency. Luckily we didn't really need it for what we were doing so we able to find another way and were able to remove it which fied our deployment issue.
Nico Albanese Hey! You could build something like this with the generateObject function! Pass in a system prompt describing the task and then a zod schema, and keep iterating until it consistently returns exactly what you’re looking for.
Bohdan Petryshyn Yeah, that’s probably what I’m going to do, just thought there might be an existing solution for it. Thanks!