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

installation broken with react 17 #74

Open
kerbelp opened this issue Jul 20, 2021 · 2 comments
Open

installation broken with react 17 #74

kerbelp opened this issue Jul 20, 2021 · 2 comments

Comments

@kerbelp
Copy link

kerbelp commented Jul 20, 2021

When running npm install react-nice-dates date-fns --save
I get the error:

npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16" from react-nice-dates@3.1.0
npm ERR! node_modules/react-nice-dates
npm ERR!   react-nice-dates@"*" from the root project
@ITernovtsii
Copy link

The same for me, and it actually works fine if I'm adding --legacy-peer-deps flag. I see component installed and behave without any errors.
Looks like there is a PR to fix - #71

@AXeL-dev
Copy link

Until the PR #71 get merged, you can try using: npm i @axel-dev/react-nice-dates date-fns --save.

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

3 participants