felixakiragreen / react-kronos

A fast, intuitive, and elegant date and time picker for React.
https://felixakiragreen.github.io/react-kronos/
MIT License
90 stars 28 forks source link

moment.locale is not a function (moment-range 1.1.0 incompatibility) #7

Closed santihbc closed 9 years ago

santihbc commented 9 years ago

Doing a clean npm install to my project, I constantly get this error. It's located in styles.js in the "initializeMoment" method.

Please give me a solution to this @dubert , it's blocking the deployment of my app. Thanks

santihbc commented 9 years ago

I know what the problem is. If you include moment-range 1.1.0 (new version released yesterday) then react-kronos uses that dependency which breaks the current build of your repo @dubert .

felixakiragreen commented 9 years ago

Thanks for catching this. I will fix this and release a new version asap.

felixakiragreen commented 9 years ago

Looked into it, it's definitely a problem with moment-range. Filled an issue here and I'll release a workaround in the mean time.

felixakiragreen commented 9 years ago

Fixed with 0.2.0 (and moment-range 1.2.0)