So, I tested this same code a couple days ago and it was working fine.
Today I started getting this uncaught typeError.
No Idea why this is occurring.
I get a reference to the calendar object.
Try to set the currentView property and then call the refresh() method to update it.
It worked before!!!
Any thoughts