conor909

ShockinglyGreen
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Newbie

About conor909

  • Rank
    Newbie
  1. conor909

    Importing drawSVG fails

    @eelsie Oh I see. Then I'm not too sure, sorry. I havn't had a chance to look into it yet but I will keep you posted.
  2. conor909

    Importing drawSVG fails

    Oh I think I see whats happening. So @eelsiee it looks like your importing after some code written in your file. I can see the import is on line 17 and you have something commented out above? imports have to be at the top of the file before any code. My issue is complaining because I dropped the plugins folder directly into my project, and importing the DrawSVGPlugin directly from that folder. But the rest of gsap modules live in npm_modules. So the drawSVGPlugin file is trying to find TweenLite from a path relative to the .zip folder, and not from npm_modules.
  3. conor909

    Importing drawSVG fails

    Hi @GreenSock, Thanks for the reply, and a great product. So I'm using create-react-app to bootstrap my app, which includes transpilers for es6 syntax. I'm also importing elsewhere in my app with no issues. Dropping the bonus files directly into the node_modules folder is not really a solution, because they'll be deleted after an `npm install` and the folder is not in source control. The NPMUsage docs are great but It's not clear on how to handle the extras that members get in the .zip folder
  4. conor909

    Importing drawSVG fails

    I have the same issue, seems to be lacking some documentation for es6 imports and npm users