You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently facing an issue with the react-hook-form library and its integration with yup for schema validation. I've encountered the following error: Type 'FieldValues' is not assignable to type 'MakeKeysOptional<TFormValues>'.
Here is codesandbox to a minimal reproduction of the issue.
I would greatly appreciate any insights, suggestions, or solutions from the community. Has anyone else encountered a similar issue, and if so, how did you resolve it?
Thank you in advance for your assistance.
P.S. Interestingly, when using Zod instead of Yup, the error does not occur.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently facing an issue with the react-hook-form library and its integration with yup for schema validation. I've encountered the following error:
Type 'FieldValues' is not assignable to type 'MakeKeysOptional<TFormValues>'
.Here is codesandbox to a minimal reproduction of the issue.
I would greatly appreciate any insights, suggestions, or solutions from the community. Has anyone else encountered a similar issue, and if so, how did you resolve it?
Thank you in advance for your assistance.
P.S. Interestingly, when using Zod instead of Yup, the error does not occur.
Update: Solved, for solution go to codesandbox.
Beta Was this translation helpful? Give feedback.
All reactions