You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
Angular 2 Universal "window is not defined" error. #167
When using with Angular 2Universal retrieve error "Call to Node module failed with error: Prerendering failed because of error: ReferenceError: window is not defined".
Obviouse error caused by using window object in that fragment of style-loader
@epanchintsev@UnGast@leobudima I'm sry you guys but style-loader won't support any SSR functionality and therefore this issue is sadly won't fix. See #159 for reasons and solutions/alternatives
Activity
UnGast commentedon Feb 9, 2017
I also experienced this with vue-server-renderer. It's in addStyles.js, line 14.
leobudima commentedon Feb 11, 2017
Same problem with React...
UnGast commentedon Feb 13, 2017
#159 seems to fix it.
michael-ciniawsky commentedon Mar 15, 2017
@epanchintsev @UnGast @leobudima I'm sry you guys but
style-loaderwon't support any SSR functionality and therefore this issue is sadly won't fix. See #159 for reasons and solutions/alternatives