Jump to content
Search Community

Premium plugins missing in business npm package

ynamite
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

Posted

Hi

 

As the title suggests, premium plugins are missing when installing with the latest Yarn.  Gsap works but plugins such as DrawSVGPlugin are missing.
I've followed the docs. @Cassie updated the docs last year with my own installation instructions which I posted in this thread:

https://gsap.com/community/forums/topic/27043-gsap-private-module-netlify-yarn/page/4/

Also, someone else posted a similar issue in this thread, but managed to resolve the issue. I haven't been so lucky thus far:

https://gsap.com/community/forums/topic/43104-plugins-missing-when-accessed-via-private-npm-registry/

My .yarnrc.yml file looks like this:

nodeLinker: node-modules
unsafeHttpWhitelist:
- 'npm.greensock.com'
 
npmScopes:
gsap:
npmRegistryServer: 'https://npm.greensock.com'
npmAuthToken: 'REDACTED'
npmAlwaysAuth: true


And in my package.json I have the following:

"gsap": "^3.12.7",


Please help!

Posted

Hi there! Thanks for the help on the yarn issues a while back!

 

This indicates that you've installed the main GSAP library, not business

Quote

And in my package.json I have the following:

"gsap": "^3.12.7",


delete node modules and your package.lock and install again with
 

yarn add gsap@npm:@gsap/business

 

Let me know how that goes!

Posted

Hi Cassie, always happy to help and thanks for the quick response.

When I enter the suggested command I get:

Error: gsap@npm:@gsap/business isn't supported by any available resolver

Posted

Hmm. Let me spin up a test repo. What version of yarn are you on?

Posted

I'm using yarn 4.6.0

  • Like 1
  • Solution
Posted

Ah then you just run 

yarn add @gsap/business

 

  • Like 1
Posted

Ah! Awesome, that did the trick!
Thanks so much Cassie!

  • Like 3
Posted

Glad to be able to return the favour, your debugging really helped us with the Yarn/Yarn Berry confusion in the past!

  • Like 2

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...