ericz1803 / react-google-calendar

React Calendar Component that displays data from Google Calendar
https://ericz1803.github.io/react-test-calendar
MIT License
192 stars 65 forks source link

Unsupported RFC prop EXDATE #14

Closed benhalverson closed 3 years ago

benhalverson commented 3 years ago

Hello I was trying to implement your lib for nodejs.dev's new calendar. I'm getting an unsupported error message any plans to support EXDATE? The calendar id for nodejs.org is nodejs.org_nr77ama8p7d7f9ajrpnu506c98@group.calendar.google.com

When I try the request with curl and my API key it works as expected with a 200 and a json response curl https://www.googleapis.com/calendar/v3/calendars/nodejs.org_nr77ama8p7d7f9ajrpnu506c98@group.calendar.google.com/events?key=key

parsestring.js:39 Uncaught Error: Unsupported RFC prop EXDATE in EXDATE;TZID=America/New_York:20171207T120000
    at parseLine (parsestring.js:39)
    at Array.map (<anonymous>)
    at Function.parseString (parsestring.js:7)
    at Function.getDatesFromRRule (index.js:753)
    at index.js:502
    at Array.forEach (<anonymous>)
    at Calendar.getRenderEvents (index.js:497)
    at Calendar.getRenderEvents (react-hot-loader.development.js:717)
    at Calendar.render (index.js:721)
    at finishClassComponent (react-dom.development.js:17161)
    at updateClassComponent (react-dom.development.js:17111)
    at beginWork (react-dom.development.js:18621)
    at HTMLUnknownElement.callCallback (react-dom.development.js:189)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:238)
    at invokeGuardedCallback (react-dom.development.js:293)
    at beginWork$1 (react-dom.development.js:23204)
    at performUnitOfWork (react-dom.development.js:22155)
    at workLoopSync (react-dom.development.js:22131)
    at performSyncWorkOnRoot (react-dom.development.js:21757)
    at react-dom.development.js:11090
    at unstable_runWithPriority (scheduler.development.js:653)
    at runWithPriority$1 (react-dom.development.js:11040)
    at flushSyncCallbackQueueImpl (react-dom.development.js:11085)
    at flushSyncCallbackQueue (react-dom.development.js:11073)
    at scheduleUpdateOnFiber (react-dom.development.js:21200)
    at Object.enqueueSetState (react-dom.development.js:12640)
    at Calendar../node_modules/react/cjs/react.development.js.Component.setState (react.development.js:471)
    at Calendar._callee$ (index.js:193)
    at tryCatch (runtime.js:45)
    at Generator.invoke [as _invoke] (runtime.js:274)
    at Generator.prototype.<computed> [as next] (runtime.js:97)
    at asyncGeneratorStep (asyncToGenerator.js:3)
    at _next (asyncToGenerator.js:25)
ericz1803 commented 3 years ago

Hi Ben! This issue should be fixed now. Let me know if there are any further issues/questions.

benhalverson commented 3 years ago

Yep it works πŸŽ‰ thanks for the quick fix πŸ‘πŸ» cal