wagerfield / parallax

Parallax Engine that reacts to the orientation of a smart device

Home Page:http://wagerfield.github.io/parallax/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not work with Angular Universal

Liudmyla01 opened this issue · comments

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

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.