Zod form control issues

Hi!

Has anyone gotten this error before / knows how to fix it?

It looks familiar, i think the syntax changed if you followed mosh line for line it might be deprecated. I’d search the form for an updated code or the documentation from zod.

I finally figured it out. Not sure if its just a “my coding environment” thing or a zod update, but i had to change the import statement to:
import * as z from “zod”

instead of:
import {z} from “zod”

Thank you for your help though!!!

1 Like

Yeah now i remember that’s right you got it!