We have recently upgraded our application to Angular18 and are exploring SSR. We have successfully executed:
ng add @angular/ssr
However when we launch we get an error in a module where we reference the window object:
ERROR ReferenceError: window is not defined
I’m not quite sure how to address this, we have a lot of places where we reference the window object. I’ve come acros:
https://www.npmjs.com/package/ssr-window
But I’m not sure what to make of this, because exports getWindow, not window.