let schema = yup.object().shape({ email: yup.string().email('Not a proper email'), // pass your error message string });