3👍
✅
Try loading the UMD version of GSAP. You can do so by saying:
import { TimelineLite, Back } from "gsap/dist/gsap";
See the GSAP’s installation page for more info.
With that being said, we recommend using the GSAP 3 formatting in which case you only need to import gsap
for the code provided. See the GSAP 3 migration guide for more info.
Source:stackexchange.com