-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot read property 'date' of undefined & npm install peer dep. unmet #44
Comments
Don't you need moment installed not react-moment? |
I think this should be split into two different issues. I am also getting the error on line 40 where for some reason |
@wangzuo can you help with that? ths same issue with me :( |
I was getting this error also while just trying to do a simple test. Once I actually set up state.moment with a moment object and defined the handleChange and handleSave methods it functioned as expected. The need for these to be defined should probably be documented. |
I have same isuue in calender.js, in line 45 it says cannot read property 'date' of undefined. |
I had the same issue to @JeremyIglehart and it was because I was missing the moment prop - import moment from 'moment'
...
<InputMoment
moment={moment()} // was missing
//... other props
/> |
npm install react-moment --save
npm i input-moment --save
2a. Above gives me the error:
This returns the error in
calendar.js
Line 40 entitled:Uncaught TypeError: Cannot read property 'date' of undefined(…)
The text was updated successfully, but these errors were encountered: