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.