Giter Club home page Giter Club logo

Comments (10)

paulstraw avatar paulstraw commented on June 15, 2024 9

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.

trilibi avatar trilibi commented on June 15, 2024 3

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.

paulstraw avatar paulstraw commented on June 15, 2024 1

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

nourmalaeb avatar nourmalaeb commented on June 15, 2024

I'm having the same issue.

from yup-phone.

diego06884 avatar diego06884 commented on June 15, 2024

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.

abhisekp avatar abhisekp commented on June 15, 2024

Thanks for reporting.

Can any one file a PR for the fix?
Thanks

from yup-phone.

jamesjara avatar jamesjara commented on June 15, 2024

this repo doesnt'work

from yup-phone.

abhisekp avatar abhisekp commented on June 15, 2024

@jamesjara @leonel-os I've updated the project. Kindly, check. It's working in codesandbox.

from yup-phone.

Rahul-sinha84 avatar Rahul-sinha84 commented on June 15, 2024

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.

VsevolodKurochka avatar VsevolodKurochka commented on June 15, 2024

I was also facing this issue

from yup-phone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.