From b69b3b0c36cf0ff9bfa1365e38fdab54ae8838aa Mon Sep 17 00:00:00 2001 From: liliana <liliana.sanfilippo@uni-bielefeld.de> Date: Wed, 7 Aug 2024 14:23:22 +0200 Subject: [PATCH] no require module --- src/components/testsvganimation.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/testsvganimation.tsx b/src/components/testsvganimation.tsx index d4abf1d7..976bbbf8 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() { -- GitLab