diff --git a/src/components/testsvganimation.tsx b/src/components/testsvganimation.tsx index 50211b52441568ff0e7c21bddf8312aafce3e9dd..dbbfea62837ef254c66cd5be9df1862a2f14c28d 100644 --- a/src/components/testsvganimation.tsx +++ b/src/components/testsvganimation.tsx @@ -1,8 +1,9 @@ import gsap from "gsap"; -import { ScrollTrigger } from 'gsap/dist/ScrollTrigger'; +import { createRequire } from 'module'; +const ScrollTrigger = createRequire('gsap/dist/ScrollTrigger'); import { useGSAP } from '@gsap/react'; import { useRef } from 'react'; -import MotionPathPlugin from "gsap/dist/MotionPathPlugin"; +const MotionPathPlugin = createRequire("gsap/dist/MotionPathPlugin"); function TestSVG() {