Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support react v18 #103

Open
SwapnilSoni1999 opened this issue Feb 14, 2023 · 1 comment
Open

support react v18 #103

SwapnilSoni1999 opened this issue Feb 14, 2023 · 1 comment

Comments

@SwapnilSoni1999
Copy link

Currently the package is working with --legacy-peer-deps option but can we fix it by allowing it installing without such options?

@bjarkehs
Copy link

bjarkehs commented May 21, 2023

Hi! I had the same issue, so I forked and released a working version for React 18. You can install it with npm i @bjarkehs/react-nice-dates you can find the code here https://github.com/bjarkehs/react-nice-dates

Only annoying part is you have to change your imports from import {} from 'react-nice-dates' to import {} from '@bjarkehs/react-nice-dates'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants