I just want to leave some info about Angular Universal / SSR and GSAP.
I was getting the following error:
ERROR TypeError:Cannot read property 'querySelectorAll' of undefined
I fixed this by checking if the current platform is the browser. Obviously it cannot run on the server.
Maybe not the best solution but at least its working for now :)
Is there a definative working solution for Angular SSR and GSAP3
in GSAP
Posted
Hello,
I just want to leave some info about Angular Universal / SSR and GSAP.
I was getting the following error:
I fixed this by checking if the current platform is the browser. Obviously it cannot run on the server.
Maybe not the best solution but at least its working for now :)
I hope this helps someone.