Skip to content
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

Open
sannjayy opened this issue Jul 14, 2023 · 4 comments
Open

yup-phone is not working with yup latest version (1.2.0) #824

sannjayy opened this issue Jul 14, 2023 · 4 comments

Comments

@sannjayy
Copy link

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"

@sannjayy 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
@simonmaass
Copy link

also getting Uncaught (in promise) TypeError: string(...).phone is not a function with nuxt 3 yup 1.2.0

@minotogna
Copy link

is this package maybe abandoned ?

@yosukapro
Copy link

Does any one have solution to use this package with latest version of Yup?

@simonmaass
Copy link

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants