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
yup-phone is not working with yup latest version (1.2.0) #824
Comments
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
also getting Uncaught (in promise) TypeError: string(...).phone is not a function with nuxt 3 yup 1.2.0 |
is this package maybe abandoned ? |
Does any one have solution to use this package with latest version of Yup? |
@abhisekp are you still maintaining this package? Thank you for all your work! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: