[{"data":1,"prerenderedAt":137},["ShallowReactive",2],{"content-\u002Fe\u002Faf01":3},{"id":4,"title":5,"body":6,"condition":128,"description":129,"extension":130,"meta":131,"navigation":132,"path":133,"seo":134,"stem":135,"__hash__":136},"errors\u002Fe\u002Faf01.md","AF01",{"type":7,"value":8,"toc":122},"minimark",[9,13,20,23,49,55,60,71,75,114],[10,11,5],"h1",{"id":12},"af01",[14,15,16],"p",{},[17,18,19],"strong",{},"The schema you passed comes from a different Zod major than the adapter you imported.",[14,21,22],{},"In development this reads:",[24,25,26],"blockquote",{},[14,27,28,32,33,36,37,40,41,44,45,48],{},[29,30,31],"span",{},"attaform\u002Fzod-v4"," Schema is not a Zod v4 schema. The ",[34,35,31],"code",{}," adapter requires zod@^4. Either: (a) install zod@^4 in your project; (b) import from ",[34,38,39],{},"attaform\u002Fzod",", which auto-detects the Zod version (and tree-shakes to a single adapter when the ",[34,42,43],{},"attaform\u002Fvite"," plugin is active); or (c) import from ",[34,46,47],{},"attaform\u002Fzod-v3"," if you are staying on Zod v3.",[14,50,51,52,54],{},"The mirror case fires from ",[34,53,47],{}," when it receives a Zod v4 schema.",[56,57,59],"h2",{"id":58},"what-happened","What happened",[14,61,62,63,66,67,70],{},"Attaform ships a first-class adapter for each Zod major, and each adapter reads that major's internal schema shape. A ",[34,64,65],{},"z.object(...)"," built by ",[34,68,69],{},"zod@4"," has no meaning to the v3 adapter, and vice versa, so the adapter stops at construction instead of failing somewhere deep in validation.",[56,72,74],{"id":73},"how-to-fix-it","How to fix it",[76,77,78,88,104],"ul",{},[79,80,81,82,84,85,87],"li",{},"Import from ",[34,83,39],{},". It detects the installed Zod major and routes to the matching adapter, and the ",[34,86,43],{}," plugin tree-shakes the unused one.",[79,89,90,91,93,94,97,98,93,100,103],{},"Or align the explicit entry with your install: ",[34,92,31],{}," with ",[34,95,96],{},"zod@^4",", ",[34,99,47],{},[34,101,102],{},"zod@^3",".",[79,105,106,107,110,111,113],{},"Monorepos: check for two Zod copies. A schema built by one workspace package against ",[34,108,109],{},"zod@3"," and validated by another against ",[34,112,69],{}," triggers this even though both imports look identical.",[14,115,116,121],{},[117,118,120],"a",{"href":119},"\u002Fdocs\u002Freference\u002Fentry-points","Entry points"," walks the full entry map.",{"title":123,"searchDepth":124,"depth":124,"links":125},"",2,[126,127],{"id":58,"depth":124,"text":59},{"id":73,"depth":124,"text":74},"The schema and the adapter disagree on the Zod major version","The schema and the adapter disagree on the Zod major version. How attaform\u002Fzod-v4, attaform\u002Fzod-v3, and the auto-detecting attaform\u002Fzod entry fit together.","md",{},true,"\u002Fe\u002Faf01",{"title":5,"description":129},"e\u002Faf01","kupOxp2eW4spgTtc2emPkNaaPc2yDE_v3gzBgL3VFHY",1787641562597]