Rudeg / react-input-calendar

http://rudeg.github.io/react-input-calendar/
MIT License
139 stars 94 forks source link

npm installation error by moment-range dependency. #124

Closed starrybleu closed 5 years ago

starrybleu commented 6 years ago

I install react-input-calendar with command npm install --save-dev react-input-calendar, then it has been installed with moment-range@^3.1.1 version for now.

But there will be an error on npm ls with 'invalid' dependency message. Also I was unable to work with react-input-calendar when I click the component to pick a date from calendar, because one of functions of moment-range has been not recognized.

So I changed moment-range's version from 3.1.1 to 2.1.0, then it works.

ypleung commented 6 years ago

I experienced the same issue. Thanks for direction to solve.