yup-phone icon indicating copy to clipboard operation
yup-phone copied to clipboard

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

Open Shailu4u opened this issue 3 years ago • 13 comments

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"

Shailu4u avatar Apr 16 '21 17:04 Shailu4u

have this problem too. maybe @Shailu4u https://github.com/abhisekp/yup-phone/issues/333 mb this can help you

MohoiNad avatar Apr 17 '21 11:04 MohoiNad

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

silviubogan avatar May 15 '21 14:05 silviubogan

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

arrisar avatar May 25 '21 08:05 arrisar

I also have the same issue

antonchupak avatar Jul 08 '21 10:07 antonchupak

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

abhisekp avatar Jul 15 '21 14:07 abhisekp

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

mdg41 avatar Oct 01 '21 21:10 mdg41

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

vancampd avatar Oct 28 '21 22:10 vancampd

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

abhisekp avatar Nov 14 '21 20:11 abhisekp

@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 avatar Nov 15 '21 20:11 Vadko

@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]

shaaandi avatar Dec 03 '21 18:12 shaaandi

same as here it is not working

gembotshering avatar Apr 29 '22 10:04 gembotshering

It doesn't work @abhisekp

ibrahimhajjaj avatar Aug 21 '22 12:08 ibrahimhajjaj

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

rynst avatar Dec 07 '22 23:12 rynst