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
The text was updated successfully, but these errors were encountered:
sannjayy
changed the title
yup-phone is not working with this latest version (1.2.0)
yup-phone is not working with yup latest version (1.2.0)
Jul 14, 2023
Describe the bug
yup-phone is not working with this current version
getting: TypeError: yup__WEBPACK_IMPORTED_MODULE_5__.string(...).phone is not a function
To Reproduce
Try to validate phone number with yup-phone
const validate = Yup.object({
phone: Yup.string()
.phone("IN")
.required('Enter your valid mobile number.'),
})
NOTE: if you do not provide a runnable reproduction the chances of getting feedback are significantly lower
Expected behavior
Should validate the phone input field
Platform (please complete the following information):
Browser [All]
Version [latest]
Additional context
"next": "13.4.9",
"react": "18.2.0",
"react-dom": "18.2.0",
"formik": "^2.4.2",
"yup": "^1.2.0",
"yup-phone": "^1.3.2"
The text was updated successfully, but these errors were encountered: