wagerfield / parallax

Parallax Engine that reacts to the orientation of a smart device
http://wagerfield.github.io/parallax/
Other
16.51k stars 2.14k forks source link

Does not work with Angular Universal #316

Closed Liudmyla01 closed 8 months ago

Liudmyla01 commented 2 years ago

Hello! I'm using Angular Universal (SSR) for SEO and after compiling have a problem (server build) : ERROR TypeError: Cannot read properties of null (reading 'indexOf')

167590141-62be6578-1bda-4c10-8b90-0b34cbc87f20
reneroth commented 8 months ago

I think the problem here is the server side rendering, since in the SSR context, you might not have access to some browser specific methods and objects. There should be a way to exclude the parallax library from SSR.