The tools and the machineL-08A8AI
A registry component's zod schema may meet zod 3 or zod 4 in the buyer's project: write it in the API both accept
- What happened
- 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 fix
- 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…
May be outdated for zod 4.x
Roofline — Real Estate Map Search for React, shadcn/ui & Tailwind (Property Listings) · Ramin Valadan ·