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 this latest version (1.2.0) #2056

Closed
sannjayy opened this issue Jul 12, 2023 · 3 comments
Closed

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

sannjayy opened this issue Jul 12, 2023 · 3 comments

Comments

@sannjayy
Copy link

sannjayy commented Jul 12, 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"

@alxndrsn
Copy link

Presumably a bug in yup-phone rather than yup... likely the same as abhisekp/yup-phone#822.

@jquense
Copy link
Owner

jquense commented Jul 12, 2023

Yeah, I don't maintain yup-phone and can't really fix it

@jquense jquense closed this as completed Jul 12, 2023
@vicmosin
Copy link

any news here or possible workarounds?

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