#Zod error

1 messages · Page 1 of 1 (latest)

uncut moss
#

Hi, @everyone
During medusa db:migrate I've got zod error

Error: Package subpath './v3' is not defined by "exports" in /home/user/MedusaJS/project/mercur/node_modules/zod/package.json

My project is mercur template, and I use Ubuntu.
I use medusajs module v2.8.4.

I've got this error just since few days ago, before there isn't no error.
What happened in MedusaJS module? How can I fix this error?
Help me.

fresh stag
#

using the snapshot like below worked for me.
I'm guessing you're also using the boilder plate? "@medusajs/admin-sdk": "2.8.8-snapshot-20250714090316",

#

i put the 2.8.8 snapshot for all @medusa instances in my packages.json

dry lynx
#

yes, until 2.8.8 is out this is the way i managed to solve the issue.

zenith cave
#

If you are using pnpm, add :

"pnpm": { "overrides": { "zod": "^3.25.0" } },

for yarn or npm:
"resolutions": { "zod": "^3.25.0" }

That worked for me.

uncut moss
#

So every medusaJS project should update package.json, and reinstall medusa modules?
It this related to updating of Medusajs module?
I've got this error just since few days ago, before there isn't no error with the same module version (2.8.4).