yup-phone
yup-phone copied to clipboard
TypeError: yup__WEBPACK_IMPORTED_MODULE_0__.string(...).phone is not a function
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"
have this problem too. maybe @Shailu4u https://github.com/abhisekp/yup-phone/issues/333 mb this can help you
I have the same issue with 1.2.19 and the solution in #333 does not work for me.
Also. having this problem, and also on 1.2.19. Going to attempt to rollback and see the latest working version.
I also have the same issue
Kindly, reach out to me in any of the platforms given below to volunteer for maintaining this repository. https://about.me/abhisekp
This is still a problem. Decided to use yup-phone-lite
for now.
I am having the same issue. No one else working on the same project is getting the error however.
@vancampd I've updated the project. Kindly, check. It's working in codesandbox.
@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
@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]
same as here it is not working
It doesn't work @abhisekp
For anyone googling an error related to yup_WEBPACK_IMPORTED_MODULE_ and are using babel, just rebuild.