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
Describe the bug
When prerendering an angular app server side with UploadxModule imported in the ngModule I obtain a window is not defined error. I already tried to polyfill the window obj as suggested for example here: angular/universal#1523
But with no success with ngx-uploadx (I made all other dependencies of my project to work on ssr but failed with ngx-uploadx)
then when executing the prerendering I obtain the error window is not defined that made the prerendering to fail
Expected behavior
ngx-uploadx should work when the page is prerendered server side or at least silently fail. I'm pretty new to angular ssr so I don't know exactly how ngx-uploadx should behave
Setup details:
Used ngx-uploadx 4.0.1
Used Angular version 11.0.5
The text was updated successfully, but these errors were encountered:
Describe the bug
When prerendering an angular app server side with UploadxModule imported in the ngModule I obtain a
window is not defined
error. I already tried to polyfill the window obj as suggested for example here: angular/universal#1523But with no success with ngx-uploadx (I made all other dependencies of my project to work on ssr but failed with ngx-uploadx)
To Reproduce
I basically followed the setup explained here: https://github.com/angular-university/angular-universal-course/tree/master
then when executing the prerendering I obtain the error
window is not defined
that made the prerendering to failExpected behavior
ngx-uploadx should work when the page is prerendered server side or at least silently fail. I'm pretty new to angular ssr so I don't know exactly how ngx-uploadx should behave
Setup details:
ngx-uploadx
4.0.1The text was updated successfully, but these errors were encountered: