Jump to content
Search Community

Thomas Popoff

Members
  • Posts

    3
  • Joined

  • Last visited

Thomas Popoff's Achievements

  1. I found my issue ! Because of my JS pre-processor, every file inside the /script/ folder is pre-processed, and it generate this issue. I created a folder and I include my file from this folder, and everything is fine ! Thanks for your help, and sorry for the time you lost, it was my bad Have a nice day !
  2. 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...?
  3. 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...