Comments (10)
I was also running into this problem. Downgrading to yup-phone 1.2.12 (or even 1.2.8) didn't solve my issue. I believe the root cause here is the way npm handles caret version rules for pre-1.x packages. My project's package.json specified yup ^0.31.0
(the latest as of this writing), but yup-phone specifies ^0.30.0
, so a compatible version couldn't be found. I resolved this by switching my package.json to yup ^0.30.0
.
from yup-phone.
We were able to resolve this by uninstalling yup and yup-phone.
then installing [email protected] first
npm remove yup
npm remove yup-phone
npm install [email protected]
from yup-phone.
@diego06884 as noted in my previous comment, you need to use the same yup minor version as the minor version specified in yup-phone. In your example of yup-phone 1.2.12
, that would mean yup 0.29.1
from yup-phone.
I'm having the same issue.
from yup-phone.
Same error here,
tried moving it back to 1.2.12 and yup back to ^0.27.0 but didn't work
from yup-phone.
Thanks for reporting.
Can any one file a PR for the fix?
Thanks
from yup-phone.
this repo doesnt'work
from yup-phone.
@jamesjara @leonel-os I've updated the project. Kindly, check. It's working in codesandbox.
from yup-phone.
I was also facing this issue, but resolved this by having the version of yup
and yup-phone
to be exactly the same as in the codesandbox
from yup-phone.
I was also facing this issue
from yup-phone.
Related Issues (20)
- Setup auto release to npm
- notRequired() with empty string causes validation to fail HOT 15
- TypeError: yup__WEBPACK_IMPORTED_MODULE_4__.string(...).phone is not a function HOT 1
- Passing Undefined To Country Code Causes Unexpected Behaviour - Non-Strict Mode Unclear
- Add support for newer yup HOT 4
- How to set phone as required phone number in a conditional? HOT 2
- TypeError: yup__WEBPACK_IMPORTED_MODULE_0__.string(...).phone is not a function HOT 13
- Bundle Size HOT 2
- Custom Error Message HOT 3
- Always False when value is undefined HOT 1
- Wrong validation result on some countries HOT 1
- Overrides yup's required() error message when no value is present. HOT 2
- Showing invalid for some valid area code. HOT 2
- Incorrect validation on phone number
- Breaks output typescript types
- Locale Validation not correct? HOT 2
- Broken on yup 1.0.0. HOT 3
- yup-phone is not working with yup latest version (1.2.0) HOT 4
- yup phone is not working on codesandbox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yup-phone.