Jump to content
Search Community

DrawSVGPlugin with Nuxt and GSAP 3

Kristian Johansen test
Moderator Tag

Recommended Posts

25 minutes ago, Kristian Johansen said:

Do I then purchase and add the file manually in to the gsap folder in my node_modules ? 

 

No, you download a file that you install.

https://greensock.com/docs/v3/Installation#npm

 

npm install ./gsap-bonus.tgz

 

Nuxt doesn't use es-modules by default. Read through this entire thread.

 

 

 

 

 

  • Like 2
Link to comment
Share on other sites

4 hours ago, Kristian Johansen said:

But still don't see the DrawSVGPlugin in the gsap folder after installing the bonus-tgz

 

Um. After installing what bonus-tgz? You can't install something that doesn't exists. That should have given you an error.

 

The gsap-bonus.tgz is a special file that you can download once you buy it. You copy the gsap-bonus.tgz file into your project, and then use npm or yarn to install it. You DON'T copy any files into your node_modules folder.

 

Importing DrawSVGPlugin will work just fine. I've done it hundreds of times.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...