Skip to content

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

@tunctn

Description

@tunctn

Version Number

5.1.0

Codesandbox/Expo snack

https://codesandbox.io/p/sandbox/long-flower-y4lkvn

Steps to reproduce

  1. Open the Sandbox
  2. Submit the zod/v3 and zod/v4 forms with any invalid values. I set some defaults for you.
  3. 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

Image

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions