-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
zod > 3.22.2 causes JavaScript heap out of memory
when running tsc
#2962
Comments
JavaScript heap out of memory
JavaScript heap out of memory
when running tsc
JavaScript heap out of memory
when running tscJavaScript heap out of memory
when running tsc
Trying with typescript |
Hi @florianmutter, I find this article may help you identify the hot spot. |
Did the same upgrade and ran into the same memory leak issue going from |
For me - yes. |
I followed the article linked by @danh-luong and analyze-trace did output the following:
We do use pnpm in a mono repo with pnpm workspaces. The different zod versions referenced by our apps seemed to have been the issue. I update zod everywhere to 3.22.4 and ran |
I'm closing this issue because we could fix the issue in our repo. |
Got the same issue with different versions of Zod in my packages. |
Can be fixed with adding a For example: "resolutions": {
"zod": "3.22.4"
} |
I had the same issue. After upgrade to the same zod version in whole monorepo working well!. |
Versions:
nodejs: 18.17.0
typescript: 5.2.2
We get the following error when updating zod to 3.22.3 or 3.22.4 and running
tsc
:I'm happy to add more information if someone tells me what to look for. Our project is fairly big. I have no idea which part might cause this.
Any help appreciated!
The text was updated successfully, but these errors were encountered: