Issues with validators (zod and native)
Hi there, a TanStack Form newbie here.
I am running into a type error issue with the zod validator adapter.
I was following the docs and zod examples, despite doing everything same I can't get the validators running somehow.
With the zod validator adapter i get following error:
My form looks like this:
My field is an agreement checkbox, that should be checked to be able to submit the form and it looks like this (with zod validator, without I was just checking the value and returning the error msg with js):
Am I doing something wrong here?
In addition, if I define some native validation using the validators prop, it won't validate at all when I submit it.
1 Reply
secure-lavender•12mo ago
Try passing the
ZodValidator
type aswell to useForm