resolvers
resolvers copied to clipboard
issue: [zod/v4] All error messages return "Invalid Input" instead of descriptive messages
Version Number
5.1.0
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/long-flower-y4lkvn
Steps to reproduce
- Open the Sandbox
- Submit the zod/v3 and zod/v4 forms with any invalid values. I set some defaults for you.
- Check the error messages below the input fields. You can check the console.log for more info.
Expected behaviour
I would expect the get the same type of descriptive error messages as zod/v3. However zod/v4 only returns "Invalid Input" for any given error type.
What browsers are you seeing the problem on?
Chrome
Screenshot
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
:tada: This issue has been resolved in version 5.1.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket: