#`Cannot read properties of undefined (reading '_zod')` build error
10 messages · Page 1 of 1 (latest)
Astro and Starlight do not support zod 4, that's probably the reason
I don't have zod as a dependencies for the docs, does Starlight has zod as peer dependency?
It builds locally, it is only not working for github actions
starlight doesn't have zod as a peer dep but astro does
Your stacktrace clearly shows zod 4 is being used, are you sure your lockfile is up date and/or frozen when installing deps on netlify?
It is in a monorepo and other packages have zod as dependency. Is this caused by phantom dependency?
Yeah that could, package manager things
Try to install latest zod 3 in the starlight project
It solved the issue