-
-
Notifications
You must be signed in to change notification settings - Fork 866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
angular-calendar - "window is not defined". Angular 9 SSR #1211
Comments
Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider sponsoring me |
Seems like this issue is not specific to Angular 9. It also occurs while using |
mattlewis92/angular-draggable-droppable@7c96113
Thanks for opening an issue, I've managed to find a way to make SSR work out the box without any hacks, please can you update to |
Thank you very very much @mattlewis92. You saved my day!! :) 👍 👍 👍 |
Awesome, I'm glad to hear that it's fixed for you 😄 |
Describe the bug
I installed your plugin to my project which is in Angular 9 and I have an issue because when I wrote "npm run serve:ssr", it always came up with this error, "window is not defined". In server.ts, I already added those two lines of codes:
global['window'] = {};
global['KeyboardEvent'] = null;
However, it didn't solve everything. I have checked everywhere to find the solution.
Can you please help me to resolve this issue?
Thank you.
Versions
@angular/core
: "~9.1.0"angular-calendar
: ""^0.28.5"The text was updated successfully, but these errors were encountered: