react-nice-dates
react-nice-dates copied to clipboard
installation broken with react 17
When running npm install react-nice-dates date-fns --save
I get the error:
npm ERR! Found: [email protected]
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 [email protected]
npm ERR! node_modules/react-nice-dates
npm ERR! react-nice-dates@"*" from the root project
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 - https://github.com/hernansartorio/react-nice-dates/pull/71
Until the PR #71 get merged, you can try using: npm i @axel-dev/react-nice-dates date-fns --save.