From dabbdaf7cda04bef7d9d12537926b85da264afdf Mon Sep 17 00:00:00 2001
From: liliana <liliana.sanfilippo@uni-bielefeld.de>
Date: Wed, 7 Aug 2024 14:42:18 +0200
Subject: [PATCH] now fixed?

---
 src/components/testsvganimation.tsx | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/components/testsvganimation.tsx b/src/components/testsvganimation.tsx
index fbeea7d3..3daa8821 100644
--- a/src/components/testsvganimation.tsx
+++ b/src/components/testsvganimation.tsx
@@ -1,15 +1,16 @@
 import gsap from "gsap"; 
-import { ScrollTrigger } from "gsap/ScrollTrigger";
-import { useGSAP } from '@gsap/react';
+import { useGSAP } from "@gsap/react";
+import { ScrollTrigger } from "gsap/dist/ScrollTrigger";
 import { useRef } from 'react';
-import { MotionPathPlugin } from "gsap/MotionPathPlugin";
-
+import { MotionPathPlugin } from "gsap/dist/MotionPathPlugin";
 
 
 
 function TestSVG() {
+  gsap.registerPlugin(useGSAP);
   gsap.registerPlugin(MotionPathPlugin);
   gsap.registerPlugin(ScrollTrigger);
+  
 console.log("Started TestSVG")
   const vectorRef = useRef(null);
   const payloadRef = useRef(null);
@@ -87,4 +88,5 @@ console.log("Started TestSVG")
   );
 }
 
-export default TestSVG;
\ No newline at end of file
+export default TestSVG;
+
-- 
GitLab