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

Cannot install DayPilot in my current Angular application

Asked by AD
3 months ago.

So I was trying to add Day Pilot lite version in my Angular 15 application. I followed all the steps from the documentation. There were no errors during the installation. However, I get this error in the console that blocks the entire page, making the calendar impossible to display/use:

Uncaught (in promise): TypeError: Cannot set property document of [object Window] which has only a getter

TypeError: Cannot set property document of [object Window] which has only a getter

I have tried an alternative method, of adding just the JS script files to the project and then importing the js in my component. However, I get the same error.

Answer posted by Dan Letecky [DayPilot]
3 months ago.

It looks like Chrome has started to report certain code as an error, even though it was acceptable before.

It will be fixed shortly.

Comment posted by Dan Letecky [DayPilot]
3 months ago.

The new release is now available (version 2024.1.519/3.20.1):

https://javascript.daypilot.org/daypilot-lite-for-javascript-2024-1-519/

Comment posted by AD
3 months ago.

Problem was solved. Thank you!

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