calendar Uncaught TypeError: Cannot read property 'setup' of undefined

  • 1
  • Problem
  • Updated 2 years ago
  • Solved
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
Photo of Sofware Developer Guy

Sofware Developer Guy

  • 1,354 Points 1k badge 2x thumb

Posted 2 years ago

  • 1
Photo of Amy Dewaal

Amy Dewaal, Official Rep

  • 8,200 Points 5k badge 2x thumb
I think you got this figured out, but in case you didn't the issue is in this console line: myco2.currentview = "weekview". The currentview property can only be "week", "month", or "dayscheduling".

Thanks!
Amy