Cannot install DayPilot in my current Angular application

Asked by AD
2 years 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]
2 years 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 AD
2 years ago.

Problem was solved. Thank you!

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