-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ESM module in Zod 2 beta causing runtime error #215
Comments
It's crashing for me too. Zod works fine on local but when I deploy my Next.js app to production (Vercel) it crashes with the error message: Affected versions: It works fine on |
Issue is most probably unrelated to
|
I removed the ESM module in I've also reproduced this issue. Now that I'm aware of this I'll be able to guarantee ESM compatibility before trying to ship an ESM module again. It's not trivial to fix so it'll take some time. There are certain internal circular imports inside Zod's source code that work fine with CommonJS modules but not with ESM. |
Gonna re-open because the root problem here isn't solved :( |
object
crashing in React Native
@aabedraba @alfonmga Actually I suppose this particular issue is solved, I'm re-opening #175 instead. |
With Zod 2.0.0-beta.20:
With Zod 1.11, no error.
Only seems to happen when using the object type
The text was updated successfully, but these errors were encountered: