Jump to content
Search Community

Thomas Popoff

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Thomas Popoff

  1. Actually, I only import GSAP with NPM. Because DrawSVGPlugin is a premium plugin, I need to import it "manually" 

    <script type="text/javascript" src="/scripts/DrawSVGPlugin.min.js"></script>

    I tried different files from the plugin folder

     

    when I use the DrawSVGPlugin.min.jo from minified, I have the error above. Same for /umd/ folder file.

     

    I tried the file in /esm/ folder, and then I have this error

    DrawSVGPlugin.js:3 Uncaught ReferenceError: exports is not defined at DrawSVGPlugin.js:3

     

    same for /src/ folder...

     

    Don't know if I can perform other tests...?

  2. Hello everyone !

     

    I'm working on a project generated with https://github.com/yeoman/generator-webapp

    I added GSAP with npm, and added this line to my index.html

    <!-- build:js scripts/vendor.js -->
    // Here is where I usually add plugins and dependancies
    <script type="text/javascript" src="/node_modules/gsap/dist/gsap.min.js"></script>
    <!-- endbuild -->

    But when I do the same with my DrawSVGPlugin.min.js file, I have this error on my browser :

    Cannot set property window of #<Window> which has only a getter

     

    I'm also using ScrollTrigger plugin on this website, and everything works fine...

     

    Do you have a better idea to import this plugin to my project ?

     

    Thank you !

×
×
  • Create New...