Skip to content
Discussion options

You must be logged in to vote

This is a compatibility issue caused by the import path. The default import (@conform-to/zod) is only for Zod v3.x and expects exports like ZodPipeline and ZodBranded, which do not exist in Zod v4.x. That’s why you see those runtime errors with Zod v4.x.

To use Zod v4.x (including v4.0.14), you must import from @conform-to/zod/v4 instead. For example:

import { parseWithZod } from '@conform-to/zod/v4';

There is no Zod v4.x version that will work with the default @conform-to/zod import; you always need to use the /v4 entrypoint with Zod v4.x. This usage is confirmed in both the documentation and issue threads (example).

Written by @dosu, approved by chimame

To reply, just mention @dosu.


H…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thissidemayur
Comment options

Answer selected by thissidemayur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant