react-nice-dates icon indicating copy to clipboard operation
react-nice-dates copied to clipboard

installation broken with react 17

Open kerbelp opened this issue 4 years ago • 2 comments

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

kerbelp avatar Jul 20 '21 15:07 kerbelp

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

ITernovtsii avatar Jul 22 '21 08:07 ITernovtsii

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

AXeL-dev avatar Jul 30 '21 19:07 AXeL-dev