TanStackT
TanStack10mo ago
2 replies
spotty-amber

TypeScript Error: "Property 'Field' does not exist on type 'AnyFormApi'" when accessing form.Field

Hello everoyne, I have a react component which i want to use to render a form UI. To this component i want to pass a form as a prop which I do using

form: AnyFormApi

And then later on when i am rendering the actual form and do:

<form.Field> I get an ts error "Property 'Field' does not exist on type 'AnyFormApi'

How can i fix this?
Was this page helpful?