yup number is Nan error when input is ignored code example
Example: yup number is Nan error when input is ignored
Yup.object().shape({
no: Yup
.number()
.transform(value => (isNaN(value) ? undefined : value)) <---
.required("can not be empty")
})