search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Getting error Uncaught TypeError: Cannot read property 'id' of undefined

Asked by Dhiraj
6 years ago.

Hi, I am using daypilot-calendar control and daypilot-month control, In my application i added Week and Month view, so based on selection i hide other and show that component,

Its working fine, But randomly following error come in console and switch does not happens

Uncaught TypeError: Cannot read property 'id' of undefined
at eval (daypilot-angular.min.js:15)
at DayPilot.Calendar.jb (daypilot-angular.min.js:15)
at DayPilot.Calendar.gd (daypilot-angular.min.js:17)
at DayPilot.Calendar.update (daypilot-angular.min.js:17)
at t.ngDoCheck (daypilot-angular.min.js:32)
at checkAndUpdateDirectiveInline (core.js:12414)
at checkAndUpdateNodeInline (core.js:13935)
at checkAndUpdateNode (core.js:13878)
at debugCheckAndUpdateNode (core.js:14771)
at debugCheckDirectivesFn (core.js:14712)

Can you give me some hint like why this should be occurring (As it is showing error in daypilot js files), So i can investigate it further in my application

Comment posted by Dan Letecky [DayPilot]
6 years ago.

What version of DayPilot Pro do you use?

Note that I have removed the "lite" tag since this question is about the Pro version.

Comment posted by Dhiraj
6 years ago.

We are using 8.4.3042 version

Comment posted by Dan Letecky [DayPilot]
6 years ago.

Have you tried using the latest version (2018.2.3324)?

https://npm.daypilot.org/

Please let me know if the problem persists with the new version.

Comment posted by Anonymous
6 years ago.

Sorry for the delayed response, I tried with the latest version 2018.2.3347 but still same issue is there

It works fine if i load application, This error comes only when in week view i am adding new event and then moving to month view this error comes.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.