Closed hussaintamboli closed 5 years ago
Out of interest, what version of npm and node do currently have installed?
node v9.3.0
npm v6.0.1
@hussaintamboli If you install the moment-range
dependency directly, I assume this resolves the issue for you?
Yes. that fixes the issue.
Also, I just noticed npm gives warning for installing moment-range
when you install react-daterange-picker
$ npm install react-daterange-picker --save
npm WARN react-daterange-picker@2.0.1 requires a peer of moment-range@^3.0.3 but none is installed. You must install peer dependencies yourself.
If moment-range is a peer dep, it'll help if it was mentioned in the readme
I followed the exact same installation and usage instructions from README.
But when I run my app, I get this dependency error -
I found many similar issues in this project. But most of them are closed saying it's fixed in the latest version (probably in v2.0.0). But looks like it's not fixed because I am using v2.0.1.