Skip to content

fix: zod peer dep issue #780

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

colinhacks
Copy link
Contributor

@colinhacks colinhacks commented Jun 9, 2025

This seems to be a years-old oversight that never mattered until the resolver started requiring runtime code from "zod". Until #777 the zod imports were type-only.

All other resolvers list their associated peer dependency except Zod. Because Zod wasn't listed as a peer dep in this file, microbundle was actually bundling runtime code from zod in the final package which caused some issues.

Closes #778

Copy link
Member

@jorisre jorisre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good! thanks!

@jorisre jorisre merged commit 79cd8b2 into react-hook-form:master Jun 9, 2025
4 checks passed
Copy link
Contributor

github-actions bot commented Jun 9, 2025

🎉 This PR is included in version 5.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

issue: [zod/v4] All error messages return "Invalid Input" instead of descriptive messages
2 participants