GithubHelp home page GithubHelp logo

Comments (14)

tomholford avatar tomholford commented on June 17, 2024 8

Just opened a PR, if this can help ...

works for me, ty!

use this in package.json until the maintainer updates the npm version:

    "react-currency-format": "github:mohitgupta8888/react-currency-format#4f365ec5005e23451a3b95da1a209b0025622b8d",

from react-currency-format.

Sml995 avatar Sml995 commented on June 17, 2024 2

Just opened a PR, if this can help ...

from react-currency-format.

ricardogomez-dev avatar ricardogomez-dev commented on June 17, 2024 2

Waiting for the pull request...

from react-currency-format.

hijal avatar hijal commented on June 17, 2024 1

To fix this issue, you can ran npm i react-currency-format --legacy-peer-deps

from react-currency-format.

loganbutler avatar loganbutler commented on June 17, 2024 1

Ended up removing react-currency-format and using currency.js

Same! Honestly after using currency.js feels like react-currency-format just ripped that and adapted it to a component.

from react-currency-format.

loganbutler avatar loganbutler commented on June 17, 2024 1

Please how could i apply this to my project? any hint?

If you just want to use currency.js, you can simply go to this link and follow the instructions. https://currency.js.org/
Otherwise just follow the instructions above for using the PR made to fix the peer dependency issue. I personally opted to just not use it for now.

for vanilla currency.js;
import currency from 'currency.js'
then
const price = currency(10).add(10) or whatever you want.

Also...I noticed the maintainer approved the PR but it's still not updated? Amazing! Thanks to @Sml995 for taking his time to make that PR. I would like to use this but don't like ugly peer deps in my terminal.

from react-currency-format.

lakshmiprasad-apisod avatar lakshmiprasad-apisod commented on June 17, 2024 1

Waiting for newer version

from react-currency-format.

loganbutler avatar loganbutler commented on June 17, 2024

To fix this issue, you can ran npm i react-currency-format --legacy-peer-deps

Or they could just update the dependency. Takes 2 seconds.

from react-currency-format.

tleo19 avatar tleo19 commented on June 17, 2024

To fix this issue, you can ran npm i react-currency-format --legacy-peer-deps

Or they could just update the dependency. Takes 2 seconds.

right... this does not "fix" the issue it's more like bypassing the "error".

Ended up removing react-currency-format and using currency.js

from react-currency-format.

Sml995 avatar Sml995 commented on June 17, 2024

Thanks !

from react-currency-format.

gysenlionel avatar gysenlionel commented on June 17, 2024

You can use if you force

npm install react-currency-format --save --force

or you can also use

npm i react-currency-format --save --force

from react-currency-format.

surfjedi avatar surfjedi commented on June 17, 2024

+1

from react-currency-format.

ciobiano avatar ciobiano commented on June 17, 2024

Ended up removing react-currency-format and using currency.js

Same! Honestly after using currency.js feels like react-currency-format just ripped that and adapted it to a component.

Please how could i apply this to my project? any hint?

from react-currency-format.

h0jeZvgoxFepBQ2C avatar h0jeZvgoxFepBQ2C commented on June 17, 2024

Please merge this PR and release a new version!!! Thank you!

from react-currency-format.

Related Issues (18)

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.