We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is from my debug log: TypeError: Cannot read property 'getEventsForDay' of undefined syncToHabbitica @ Code.gs:10
TypeError: Cannot read property 'getEventsForDay' of undefined syncToHabbitica @ Code.gs:10
I have CALENDAR_NAME defined properly, I believe, I even tried different names. Any idea why this isn't working?
The text was updated successfully, but these errors were encountered:
Me too!!
Sorry, something went wrong.
This is from my debug log: TypeError: Cannot read property 'getEventsForDay' of undefined syncToHabbitica @ Code.gs:10 I have CALENDAR_NAME defined properly, I believe, I even tried different names. Any idea why this isn't working?
Okay so instead of having
// const today = new Date(); // const agenda = CalendarApp.getCalendarsByName(CALENDAR_NAME)[0]; // const events = agenda.getEventsForDay(today);
replace it with var today = new Date(); var events = CalendarApp.getDefaultCalendar().getEventsForDay(today);
looks like the GetCalendarsByName function doesn't exist :) lmk if this helped!
No branches or pull requests
This is from my debug log:
TypeError: Cannot read property 'getEventsForDay' of undefined syncToHabbitica @ Code.gs:10
I have CALENDAR_NAME defined properly, I believe, I even tried different names. Any idea why this isn't working?
The text was updated successfully, but these errors were encountered: