-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
2.0.0+ doesn't work with ssr #173
Comments
Angular Universal also breaks with the same error during server-side rendering, where the window object is not available: ReferenceError: window is not defined
|
I found a workaround adding the following to my webpack.server.config.js
However then I have a new problem with Zone :
I guess this library doesn't support SSR anymore :/ |
Any news about SSR support ? |
up |
I'm currently searching for an PDF viewer that supports Angular Universal. Are there any news on this issue? Would a reproduction repository help? I don't really need PDF viewer on server side - maybe a simple solution would be to provide a noop-Module like the noopanimationsmodule.. |
Would definitely save me some time if somebody provides a repo where i can reproduce this issue. |
@VadimDez any updates on this guys? |
I'll try to finish this by the end of this week. |
Fixed in |
Awesome! I'll test soon! ;-) |
That's nice! Thank you! |
Hi. I have problem in universal with the error Element is not defined. I found that the problem is for this component. Any Idea to fix that? |
+1 for previous comment: ReferenceError: Element is not defined |
any update on this? |
@hesampour @arsenlol @shahbazkhan054
We encountered the same problem, and fixed it in prerender.ts & server.ts by adding the following lines:
|
@VadimDez can you check this error reproduced again in v5.3.4. |
Hi!
Everything is working fine using webpack and ssr with the version 1.2.7.
However since version 2.0.0 I get the following error when I start my dist/server.js file.
The text was updated successfully, but these errors were encountered: