ScrollTrigger missing plugin on Nux generate static site in GSAP Posted November 14, 2022 Hi initium, I don't know if you're still struggling with this but i had a similar issue using Nuxt 3 and ScrollTrigger. I solved by turning my mounted hook in an async function (i used mounted instead of created) and importing ScrollTrigger using: const ScrollTrigger = await import('gsap/ScrollTrigger ') And the my animation worked il live mode generating a static site. Hope this will help you 1 1
ScrollTrigger missing plugin on Nux generate static site
in GSAP
Posted
Hi initium,
I don't know if you're still struggling with this but i had a similar issue using Nuxt 3 and ScrollTrigger.
I solved by turning my mounted hook in an async function (i used mounted instead of created) and importing ScrollTrigger using:
const ScrollTrigger = await import('gsap/ScrollTrigger ')
And the my animation worked il live mode generating a static site.
Hope this will help you