Use this and the error will be resolved. This error is due to the not usage of ES Modules, so you have to use UMD modules import { ScrollTrigger } from 'gsap/dist/ScrollTrigger';