Jump to content
GreenSock

Vander

Premium plugins in stackblitz

Moderator Tag

Recommended Posts

Is it possible to use Premium plugins in stackblitz platform? 

I'm trying to recreate something to get some help from other people but i'm afraid they can get my token

Link to comment
Share on other sites

Absolutely! Stackblitz is whitelisted in the gsap-trial package. You can use them as much as you want on that domain for free. 

 

Have fun!

  • Like 1
Link to comment
Share on other sites

2 hours ago, GreenSock said:

Absolutely! Stackblitz is whitelisted in the gsap-trial package. You can use them as much as you want on that domain for free. 

 

Have fun!

Thanks! Didn't know about this :)

 

Could you help me by importing SplitText? Do you see any error on my TransformAnimation.vue component? I see some errors in console but i dont know how to fix them (I need glasses maybe 😕 ) but i can't run my app (pnpm dev)

https://stackblitz.com/edit/testing-astro-swup-vue?file=src%2Fcomponents%2FTransformAnimation.vue,src%2Fpages%2Findex.astro

 

Thanks!

Link to comment
Share on other sites

It looks like your build tool doesn't recognize ES Modules, so you can just import the UMD files from the /dist/ directory: 

import SplitText from 'gsap-trial/dist/SplitText';

And you can import GSAP like that too: 

import gsap from 'gsap-trial/dist/gsap';

Does that help? 

  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...

My  .npmrc is set correctly and works locally, but not when trying to install dependencies in Stackblitz

Same node version and the same yarn version.

But when I try to add my `@gsap/simply` package, I keep getting "Failed to fetch dependencies: @3.12.1".

 

Link to comment
Share on other sites

Hi,

 

In Stackblitz there is no need for .npmrc files, just use the GSAP Trial package:

npm install --save gsap-trial

Here is an example of a React app using the ScrollSmoother Plugin without any issues:

https://stackblitz.com/edit/react-iqmjfx

 

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

Thank you for your prompt reply  @Rodrigo 

I understand "there is no need", but is it possible at all?

Since I am working on my repository, I want to be able to use the same dependency regardless of the platform.

 

 

Link to comment
Share on other sites

Oh well, it turns out private NPM registry support in Stackblitz is an "Enterprise" plan feature ... https://stackblitz.com/membership

  • Private NPM registry integration
Link to comment
Share on other sites

Thanks for posting back here about what you discovered, @yumyo. Sorry about the speed bumps you encountered. I'm sure it's a bit annoying, but just using the gsap-trial package on Stackblitz is probably the easiest route and allows you to avoid getting an Enterprise Stackblitz plan.

 

Thanks for being a Club GreenSock member! 🥳 

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