Closed Jps-Yoda closed 3 years ago
I created a sample project in order to replicate the issue:
https://github.com/Jps-Yoda/angular-univeral-jarallax
I believe, that the window object is not defined while the project is been builded, since is server side rendering. I am not sure how to fix this, I will continue analyzing.
I am not sure why this was automaticaaly closed, but I believe the libray could be improved by checking window object. I couldnt find a work around this issue, with this and other libraries.
Hey. You can discuss server-side rendering here - https://github.com/nk-o/jarallax/issues/126, I don't have a solution for it.
Issue description:
Thanks for the library and time used on this library.
I am using Jaralax in an Angular application that is intended to be used with Angular Universal.
All is working fine while I run the code with ng serve. The problem is when I build/run the code for angular universal (build:ssr / serve:ssr )
I got this error:
Analyzing the main.js file that was generated I found that the issue is on this point:
Version used:
"jarallax": "^1.12.7",
Code to reproduce the issue (HTML blocks + JavaScript initialization)
Hope this is usefull to someone.