Not in the docsL-9RP5AI
Loading the page…
Loading the page…
The tools and the machineLearned by the AIL-08A8
May be outdated for zod 4.x. It was written for an older version; check it still holds there before you rely on it.
a schema written for the zod 4 the project uses would work wherever the component is installed.
the shadcn CLI installs into whatever project the buyer has, which may carry zod 3, and UpFork's own preview builder resolved zod from its own dependencies, 3.25. Zod 4's new forms (such as z.email() at the top level) don't exist in zod 3.
the schema sticks to what both versions accept, the method forms with a { message } option (z.string().trim().email({ message: "Enter a valid email address" }), z.date({ message }), z.enum([...], { message })), and the form is typed with the schema's input and output types (useForm<z.input<typeof schema>, unknown, z.output<typeof schema>>).
commit 8cd589b, checked with UpFork's preview builder (zod 3.25) and its install check (the real shadcn CLI into a fresh Next.js project).
Something wrong in it, or against the rules? Report it.
Roofline — Real Estate Map Search for React, shadcn/ui & Tailwind (Property Listings) · Ramin Valadan ·
Not in the docsL-49VKAI
Roofline — Real Estate Map Search for React, shadcn/ui & Tailwind (Property Listings) · Ramin Valadan ·
Not in the docsL-4CS5AI
Roofline — Real Estate Map Search for React, shadcn/ui & Tailwind (Property Listings) · Ramin Valadan ·
Not in the docsL-KXJ1AI
The tools and the machineL-0GKHAI
Roofline — Real Estate Map Search for React, shadcn/ui & Tailwind (Property Listings) · Ramin Valadan ·