The requested module 'zod' does not provide an export named 'globalRegistry' #2948
-
|
Trying out the basic setup but getting the following: I have zod v4 installed in the repo. Any idea why is it happening? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Take a look on this closely, @jakub-msqt : for some reason you (also?) have Try running It's also possible that you didn't install |
Beta Was this translation helpful? Give feedback.
-
After setting I'll need to do some testing to make sure this didn't break anything. I'd generally rather avoid |
Beta Was this translation helpful? Give feedback.
-
|
Ok, I've updated some dependencies (although only minor version) that used zod internally and it seems like the issue resolved without needing |
Beta Was this translation helpful? Give feedback.
Take a look on this closely, @jakub-msqt :
for some reason you (also?) have
zod@3.25.76installed and yourpnpmconfiguration uses that version for the plugin, but it needs^4.0.0.Try running
pnpm -r why zodto make sure why you're having Zod 3 installed and change it to 4.It's also possible that you didn't install
zod@3yourself, but for some weird reasonpnpmdid it for you silently.In that case you can try setting
autoInstallPeers: false(in your pnpm config)