Question(v4): What is the behavior of the error message for the `file` schema in `@zod/mini`? · Issue #4262 · colinhacks/zod · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zod Mini isn't supposed to load the English locale by default...without a locale all error messages default to "Invalid input". Perhaps the code that loads the en.ts locale in "zod/v4" is getting eagerly executed in one environment but not the other?
That said, I'm not able to replicate on the latest betas. How are you running this file? Could you upgrade and again with the latest beta?
PS: Note that you'll need to rewrite your v4 imports to "zod/v4-mini" after upgrading; for more information, see #4371 for details
Overview
Error messages output differ depending on whether the
file
schema is used in ESM or CJS. Is this the intended behavior?Details
I checked this with the sample code.
The text was updated successfully, but these errors were encountered: