-
Notifications
You must be signed in to change notification settings - Fork 3
On SSR gives ReferenceError
s for window and document
#18
Comments
@osnoser1 you as an expert of SSR can you give me your opinion here? |
@dianjuar I'm always thrilled with your response time 🔥 🤣 |
@anelad Do you have a repo of your problem ? |
I can create a basic git repo. But I'm afraid its gonna take some time since I'm highly busy right now. |
@osnoser1 THANK YOU!!!! |
@anelad deploying... |
Thank you @dianjuar |
@osnoser1 take a look at this ----> https://travis-ci.org/bikecoders/ngx-sticky |
@anelad I just publish the package with your solution on the I am having issues with travis ci that, it's design to make the deployment automatically but is failing installing some dependencies. So until I fix that awful CI you can make your test with that version of the package. I will reopen the issue until I fix it. Please tell me how it goes. Sorry for the delay on this. |
@osnoser1, We're migrating this package to Nx and making compatibility with Angular9. I know too little about SSR, could you give us the instructions to know how to unit test the feature that you added? I want to have this feature always present on every change that we made from now on. I want to have the unit test for it. |
The first thing is first; it works on SSR.
But gives console errors on page loads.
At first load of the app; it gives
ReferenceError: window is not defined
. Full output:When surfing between pages after the app is loaded, it gives
ERROR ReferenceError: document is not defined
. Full output:The text was updated successfully, but these errors were encountered: