Skip to content

Unable to understand why form is invalid but there are no errors inside the error object #10128

Answered by leapful
iongion asked this question in Q&A
Discussion options

You must be logged in to vote

@iongion

Please read carefully the documentation

Error can only be mapped if it was registered with react-hook-form. In your example, even with built-in yup resolver or your custom yup resolver, there is only one input "Name" has been registered, therefore react-hook-form cannot validate and show error of what it does not know.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@iongion
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Moshyfawn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants