Jump to content
Search Community

stekmo

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by stekmo

  1. Hello. I just bought the BusinessGreen license and I'm trying to import the GSDevTools into my project. Before I just played around with GreenSock through the npm package, which worked just fine. After downloading the files I tried importing it in different ways, but I can't seem to get it work properly.

    I've tried copying all the bonus plugins into my gsap node_modules folder and importing them in these two ways.

    import GSDevTools from 'gsap/GSDevTools';
    
    import { GSDevTools } from 'gsap';

    When I try to run GSDevTools.create() or simply console.log the GSDevTools it says it's undefined. 

    I tried importing MorphSVGPlugin this way, which seems to import the MorhpSVGPlugin function perfectly. 

     

    I also tried simply putting the downloaded folder into my project, and importing it directly from that path.

    import GSDevTools from '../../../../greensock/src/bonus-files-for-npm-users/GSDevTools';

    Which gives me a whole bunch of errors in the console.

     

    image.png.3c8e73b5d34d7415a155f9b47c33d7f8.png

    I'm currently using React and Webpack, but I can't tell if any of these are the cause of this issue.

×
×
  • Create New...