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