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

TypeError: yup__WEBPACK_IMPORTED_MODULE_0__.string(...).phone is not a function #553

Open
Shailu4u opened this issue Apr 16, 2021 · 13 comments

Comments

@Shailu4u
Copy link

import * as Yup from "yup";
import "yup-phone";

declare module "yup" {
export interface StringSchema {
phone(countryCode?: string, strict?: boolean): StringSchema;
}
}

After using above code still getting that error.
Versions:
"yup": "^0.32.8",
"yup-phone": "^1.2.19"

@MohoiNad
Copy link

have this problem too. maybe @Shailu4u #333 mb this can help you

@silviubogan
Copy link

I have the same issue with 1.2.19 and the solution in #333 does not work for me.

@arrisar
Copy link

arrisar commented May 25, 2021

Also. having this problem, and also on 1.2.19. Going to attempt to rollback and see the latest working version.

@antonchupak
Copy link

I also have the same issue

@abhisekp
Copy link
Owner

abhisekp commented Jul 15, 2021

Kindly, reach out to me in any of the platforms given below to volunteer for maintaining this repository.
https://about.me/abhisekp

@mdg41
Copy link

mdg41 commented Oct 1, 2021

This is still a problem. Decided to use yup-phone-lite for now.

@vancampd
Copy link

I am having the same issue. No one else working on the same project is getting the error however.

@abhisekp
Copy link
Owner

@vancampd I've updated the project. Kindly, check. It's working in codesandbox.

@Vadko
Copy link

Vadko commented Nov 15, 2021

@vancampd I've updated the project. Kindly, check. It's working in codesandbox.

I've done it in my project with the same way as in sandbox, also, my lib version is the same too, but anyway it doesn't work in real project

@shaaandi
Copy link

shaaandi commented Dec 3, 2021

@Vadko
It's working with the exact same versions of the yup and yup-phone as given in the code sandbox.
So for me it wasn't working with [email protected] but is working with [email protected]

@gembotshering
Copy link

same as here it is not working

@ibrahimhajjaj
Copy link

It doesn't work @abhisekp

@rynst
Copy link

rynst commented Dec 7, 2022

For anyone googling an error related to yup_WEBPACK_IMPORTED_MODULE_ and are using babel, just rebuild.

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