Comments (14)
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.
Just opened a PR, if this can help ...
from react-currency-format.
Waiting for the pull request...
from react-currency-format.
To fix this issue, you can ran npm i react-currency-format --legacy-peer-deps
from react-currency-format.
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.
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.
Waiting for newer version
from react-currency-format.
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.
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.
Thanks !
from react-currency-format.
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.
+1
from react-currency-format.
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.
Please merge this PR and release a new version!!! Thank you!
from react-currency-format.
Related Issues (18)
- Can't use it with TS HOT 3
- Disable Filed
- Warning: Failed prop type: Invalid prop `customInput` of type `object` HOT 2
- Could not find a declaration file for module 'react-currency-format' HOT 1
- Prevent rounding value
- Get Name Or ID input ?
- This package is still on version 1.0.0 on NPM and therefore doesn't support React 17+ HOT 3
- Forward ref to input component
- fix the version number
- Number keypad in mobile?
- Why does this look identical to https://github.com/s-yadav/react-number-format?
- Fixed "Failed prop type: Invalid prop customInput of type object"
- Is it possible to define max value? HOT 3
- Unable to remove dash symbol
- Round number with decimalScale to 0 results in NaN00
- empty field returns NaN HOT 1
- Export getFloatString function to convert string to float inside component
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 react-currency-format.