Skip to content

v4: z.email(...).max is not a function error #4141

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

Open
nshaikhinurov opened this issue Apr 14, 2025 · 1 comment
Open

v4: z.email(...).max is not a function error #4141

nshaikhinurov opened this issue Apr 14, 2025 · 1 comment

Comments

@nshaikhinurov
Copy link

I tried to migrate my email validation schema as described in the guide.

This is the simple example:
z.email('Invalid e-mail. Make sure you enter the correct e-mail address.').max(255).nonempty('Email is required')

TS doesn't show any type errors on that schema definition but in runtime I get z.email(...).max is not a function

BTW Is there any playground I can use to track bug fixes and test new features of v4?

@nshaikhinurov nshaikhinurov changed the title v4: z.email(...).max is not a function v4: z.email(...).max is not a function error Apr 14, 2025
@spaceemotion
Copy link

spaceemotion commented Apr 16, 2025

Seems similar to #4162

@RobinTail RobinTail mentioned this issue Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants