I get the following error when trying to scrollTo with GSAP v3.0.2:
gsap-core.js?5806:3410 Uncaught TypeError: Failed to execute 'scrollTo' on 'Window': parameter 1 ('options') is not an object.
at PropTween._setterFunc [as set] (gsap-core.js?5806:3410)
at PropTween._renderComplexString [as r] (gsap-core.js?5806:3447)
at Tween.render (gsap-core.js?5806:3188)
at _lazyRender (gsap-core.js?5806:187)
at _lazySafeRender (gsap-core.js?5806:200)
at update
That is what I would recommend. Or you could make a single file to do all the registering, and just export what you will actually reference from that file. It gives you a nice centralized place to register and keep track of what plugins you are using, and streamline your code a bit.
my-gsap.js
import { gsap } from "gsap";
import { Draggable } from "gsap/Draggable";
import { ScrollToPlugin } from "gsap/ScrollToPlugin";
import { TextPlugin } from "gsap/TextPlugin";
gsap.registerP