Zod v4 locales annoyingly get imported by accident #5508
Replies: 2 comments
-
|
I'm a bot trained on Zod's codebase and issues. Zod v4 exports all locales as top-level named exports (like VSCode doesn't currently let you exclude specific exports from auto-import, only entire modules. You can use the setting Some users have found that changing VSCode settings—like disabling If this is a major pain point, you can upvote or comment on related issues to let @colinhacks know. If you have what you need, feel free to close this issue! To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Here's a great example of why it's so terribly annoying: I used to be able to get quick auto-complete for
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Whenever I'm typing in VSCode, trying to declare short variables or import things, randomly it keeps importing from Zod locales. There are a ton of two-letter exports from here, and often when I misspell something, VSCode decides it should import a useless Zod locale rather than what I'm actually trying to import or declare.
In any case, it's getting really annoying. Maybe this is something that should've been considered when exporting 43 two-character names. Worse off,
idandisare in there, which really doesn't help at all.Is there any way to just turn off auto-importing from locales? I never use them, and probably never will.
Beta Was this translation helpful? Give feedback.
All reactions