Hey there,
I'm working on a project right now and wanted to use GSAP for that, but I have a problem setting it up with SvelteKit and Typescript.
I tried importing the module with the Text Plugin and everything works fine in the Browser but PhpStorm displays an error when I try registering the plugin.
I registered GSAP and the TextPlugin like in the following example
import gsap from 'gsap/dist/gsap';
import { TextPlugin } from 'gsap/dist/TextPlugin';
gsap.registerPlugin(TextPlugin);
But just like you see on the image I get an error 'Unresolved function or method registerPlugin()'
The same error is happening when I try to use gsap.fromTo but not when I use gsap.to etc.
Its pretty weird, cause just like I said everything works fine in the browser ?
Thank you very much!