ynamite Posted February 18 Posted February 18 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!
Cassie Posted February 18 Posted February 18 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!
ynamite Posted February 18 Author Posted February 18 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
Cassie Posted February 18 Posted February 18 Hmm. Let me spin up a test repo. What version of yarn are you on?
Solution Cassie Posted February 18 Solution Posted February 18 Ah then you just run yarn add @gsap/business 1
ynamite Posted February 18 Author Posted February 18 Ah! Awesome, that did the trick! Thanks so much Cassie! 3
Cassie Posted February 18 Posted February 18 Glad to be able to return the favour, your debugging really helped us with the Yarn/Yarn Berry confusion in the past! 2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now