Jump to content
Search Community

aplons

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by aplons

  1. 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);

    image.png.5ec19d54ccb5ff6005c02f90443e3523.png

     

    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!

×
×
  • Create New...