[{"data":1,"prerenderedAt":168},["ShallowReactive",2],{"content-\u002Fe\u002Faf04":3},{"id":4,"title":5,"body":6,"condition":160,"description":161,"extension":162,"meta":163,"navigation":119,"path":164,"seo":165,"stem":166,"__hash__":167},"errors\u002Fe\u002Faf04.md","AF04",{"type":7,"value":8,"toc":156},"minimark",[9,13,28,31,52,57,63,67,144,152],[10,11,5],"h1",{"id":12},"af04",[14,15,16],"p",{},[17,18,19,23,24,27],"strong",{},[20,21,22],"code",{},"useForm"," received something other than a configuration object with a ",[20,25,26],{},"schema"," field.",[14,29,30],{},"In development this reads:",[32,33,34],"blockquote",{},[14,35,36,40,41,43,44,47,48,51],{},[37,38,39],"span",{},"attaform"," useForm received an invalid configuration (a schema directly, no argument, or no ",[20,42,26],{}," field). Pass it as ",[20,45,46],{},"useForm({ schema })"," — the schema is one of several configuration options. See ",[20,49,50],{},"https:\u002F\u002Fattaform.dev\u002Fdocs\u002Freading-the-form\u002Fthe-form"," for the full configuration shape.",[53,54,56],"h2",{"id":55},"what-happened","What happened",[14,58,59,60,62],{},"The argument to ",[20,61,22],{}," is an options bag, and the schema is one of several fields on it. Passing the schema directly (or nothing at all) is the most common first-run stumble, so Attaform names it precisely instead of failing deep inside the validator.",[53,64,66],{"id":65},"how-to-fix-it","How to fix it",[68,69,74],"pre",{"className":70,"code":71,"language":72,"meta":73,"style":73},"language-ts shiki shiki-themes github-light github-dark","const schema = z.object({ email: z.string().email() })\n\n\u002F\u002F Instead of useForm(schema):\nconst form = useForm({ schema })\n","ts","",[20,75,76,114,121,128],{"__ignoreMap":73},[37,77,80,84,88,91,95,99,102,105,108,111],{"class":78,"line":79},"line",1,[37,81,83],{"class":82},"szBVR","const",[37,85,87],{"class":86},"sj4cs"," schema",[37,89,90],{"class":82}," =",[37,92,94],{"class":93},"sVt8B"," z.",[37,96,98],{"class":97},"sScJk","object",[37,100,101],{"class":93},"({ email: z.",[37,103,104],{"class":97},"string",[37,106,107],{"class":93},"().",[37,109,110],{"class":97},"email",[37,112,113],{"class":93},"() })\n",[37,115,117],{"class":78,"line":116},2,[37,118,120],{"emptyLinePlaceholder":119},true,"\n",[37,122,124],{"class":78,"line":123},3,[37,125,127],{"class":126},"sJ8bj","\u002F\u002F Instead of useForm(schema):\n",[37,129,131,133,136,138,141],{"class":78,"line":130},4,[37,132,83],{"class":82},[37,134,135],{"class":86}," form",[37,137,90],{"class":82},[37,139,140],{"class":97}," useForm",[37,142,143],{"class":93},"({ schema })\n",[14,145,146,151],{},[147,148,150],"a",{"href":149},"\u002Fdocs\u002Freading-the-form\u002Fthe-form","The form"," documents every configuration option.",[153,154,155],"style",{},"html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":73,"searchDepth":116,"depth":116,"links":157},[158,159],{"id":55,"depth":116,"text":56},{"id":65,"depth":116,"text":66},"`useForm` received an invalid configuration","useForm received an invalid configuration, most often a schema passed directly instead of inside the options object. The one-line fix and the full shape.","md",{},"\u002Fe\u002Faf04",{"title":5,"description":161},"e\u002Faf04","GL3VYT7w1IfxoBwYdmKFdM6H8L5LB4HpTTb_eKsQA8c",1787641562806]