fullcalendar “typeError: Cannot read property 'hasTime' of undefined”

天涯浪子 提交于 2020-02-24 05:29:52

问题


My jQuery Full Calendar was working fine until I added some events. I am now getting the error: fullcalendar "typeError: Cannot read property 'hasTime' of undefined" I think this is referring to range (JS lines in fullcal.js have to do with range normalization.( When I console.log(range) I get [object Object] . I have a start time, have added an end time and tried setting allday to true but its not working.

see https://github.com/Brigette-Eckert/PacNW-Race-Calendar for repository.
Screenshot of page with console open to see errror


回答1:


Brigette,

This is because I could see a junk data "uglyHolidaySweaterRun15"(string) in between your event objects (raceJSON.js).

You can make it work once you remove that.



来源:https://stackoverflow.com/questions/33989648/fullcalendar-typeerror-cannot-read-property-hastime-of-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!