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
Expected 6 arguments, but got 1. in yupResolver #643
Comments
+1 |
Yeah, something not right here at all. |
Btw downgrade helps for now.. |
Yep - unfortunately I went back down to 2.19.11 I think it was. |
I was facing the same issue pls give me a accurate answer which library version i can downgrade or upgrade @arminsalcin @OldManMeta |
Can you provide a Codesandbox with the issue? |
I can solve this issue by this code added to my code Old code`//import all the statement export default function UniversityForm({ currentUniversity, isUpdate, onClose }: UniversityFormProps) { const methods = useForm({ const { updateUniversity, isLoading, error, data } = useUpdateUniversityMutation(); const { const values = watch(); useEffect(() => { const onSubmit = async () => { const create = async () => { const update = async () => { return ( ### This is my new code with the solution `//import all the statement type University = { const { createUniversity } = universityApi.endpoints; export default function UniversityForm({ currentUniversity, isUpdate, onClose }: UniversityFormProps) { // console.log("defaultValues", defaultValues) const formData = { const methods = useForm({ const { updateUniversity, isLoading, error, data } = useUpdateUniversityMutation(); const { const values = watch(); useEffect(() => { const onSubmit = async () => { const create = async () => { const update = async () => { return ( |
Same issue This is what my schema looks like
This is how I am using the schema with yupResolver
This is the error I get
|
I got the same issue the dependencies
this is my yup object
this is my useForm
The error:
|
any update on this issue |
I've fixed it by downgrading {
"@hookform/resolvers": "3.1.1",
"react-hook-form": "7.49.3",
"yup": "^1.3.3",
"typescript": "^5.3.3"
} |
+1 |
Describe the bug
i got this bug in my next app
The text was updated successfully, but these errors were encountered: