Uh oh!
There was an error while loading. Please reload this page.
feat(window): mocking window object - #311
Conversation
| export var window = win; | ||
| global.window = win; | ||
| GLOBAL.window = win; |
There was a problem hiding this comment.
I set those two justs in case :)
There was a problem hiding this comment.
it looks like GLOBAL and root will be removed
nodejs/node#1838
PatrickJS
commented
Mar 7, 2016
kk merging |
antonbarada
commented
Oct 19, 2016
@gdi2290 how it works? |
antonbarada
commented
Oct 25, 2016
manekinekko
commented
Oct 26, 2016
@thebarada please provide us with a working sample so we can reproduce your issue? |
PatrickJS
commented
Oct 27, 2016
@thebarada if you're talking about Material error there's a workaround in the universal-starter. you can track this issue for window "support" |
Xaiid
commented
Oct 28, 2016
@gdi2290 I imported Ng1toNg2(Need Ng1toNg2 to make hybrid application routes works) module from ui-router, this requires angular 1.5.8 which uses window, and is throwing the error. node_modules/angular/angular.js:31766 ReferenceError: window is not defined` Is Angular 1.5.8 going to be supported? |
PatrickJS
commented
Dec 14, 2016
Angular 1.x.x is not supported for universal |
i'm trying to use masonry.js in universal starter pack with a 2.3 config Error: ReferenceError: window is not defined |
sushrest
commented
Nov 28, 2018
Looks like its merged.. How to implement global window object for SSR. I am still getting undefined window error. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |

PR for #282