diff --git a/src/components/testsvganimation.tsx b/src/components/testsvganimation.tsx index d4abf1d7f00534ccfc0f8d43cbd11b7f529d18b2..976bbbf8ac123b60c38f957e9dc14d2741473411 100644 --- a/src/components/testsvganimation.tsx +++ b/src/components/testsvganimation.tsx @@ -1,10 +1,9 @@ import gsap from "gsap"; -import { createRequire } from 'module'; -const ScrollTrigger = createRequire('/home/lili/Dokumente/iGem/Wiki/bielefeld-cebitec/pubpub/extra_modules/gsap/ScrollTrigger.js'); +import '/home/lili/Dokumente/iGem/Wiki/bielefeld-cebitec/pubpub/extra_modules/gsap/ScrollTrigger.js'; import { useGSAP } from '@gsap/react'; import { useRef } from 'react'; -const MotionPathPlugin = createRequire("/home/lili/Dokumente/iGem/Wiki/bielefeld-cebitec/pubpub/extra_modules/gsap/dist/MotionPathPlugin.js"); +import "/home/lili/Dokumente/iGem/Wiki/bielefeld-cebitec/pubpub/extra_modules/gsap/dist/MotionPathPlugin.js"; function TestSVG() {