New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript error after upgrading to >= v3.1.1 #631
Comments
I wanted to create an issue regarding this error but turns out there is already this one. However, I have already created a playground to showcase this error. Perhaps my playground would be easier to understand. Codesandbox link: https://codesandbox.io/s/relaxed-chatterjee-p5scpp?file=/src/App.tsx. Steps to reproduce the error:
|
Hi, thank you for the great library, any ideas on how to fix this ? meanwhile rolled back to 3.0.0 |
Ran into this myself recently. Yup v1.* has a compiler flag requirement.
I also defined my schema and typed it using the Versions:
|
It looks like this issue is gone after upgrading |
The issue is gone for me after updated to the latest version as well. |
Describe the bug
I am building a form with a "dynamic" Yup schema. According to some user actions, the set of inputs to fill in is selected among different choices. I have this "working" with @hookform/resolvers
3.1.0
but when upgrading to3.1.1
or above, I get a TypeScript error on the resolver type.To Reproduce
Step to reproduce the behavior:
3.1.0
Activate Form X
)Codesandbox link (Required)
Sandbox: https://codesandbox.io/s/serene-glitter-lct3zp?file=/src/App.tsx
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: