Jump to content
Search Community

Failed to resolve import "gsap/ScrollSmoother" from "src\App.tsx". Does the file exist?

jeeezzzzzyyyyyy test
Moderator Tag

Recommended Posts

There's an error while use gsap. Im using React Typescript using vite. This is the error i'm facing right now.gsaperror.jpg.9555ad9820184879805a2bdad53c80d4.jpg

 

I've used gsap/all to import ScrollTrigger and SrollSmoother, and this error pops up.

293615884_Screenshot2023-01-02103052.jpg.1106469fb8c9fadc1d7bb7c8a207a0fa.jpg

 

Here's my code for importing gsap. ScrollTrigger works perfectly fine but ScrollSmoother keeps making an errorgsap1.thumb.png.056903609a6df156b3ef2fb2c67c848b.pnggsap2.thumb.png.9070d25f5de5a8a72b1a8bb891ac199c.png

Link to comment
Share on other sites

Welcome to the forums, @jeeezzzzzyyyyyy

 

That's because ScrollSmoother is a membership benefit of Club GreenSock and it looks like you haven't joined yet. See https://greensock.com/club

 

ScrollSmoother is not in the public "gsap" package. Once you sign up for Club GreenSock, you get access to a private repo, or you can just download a zip with the files and it also contains a .tgz file that you can npm install. Whatever works best with your workflow. Installation instructions are here.

 

You can use the "gsap-trial" package if you'd like to try any of the members-only plugins on CodePen, CodeSandbox, StackBlitz or locally for FREE. They won't work if you try deploying those files anywhere except a whitelisted domain. 

 

Hopefully you'll find that the Club GreenSock membership pays for itself very quickly when you consider all the time it saves, the performance and compatibility benefits, and all the capabilities it opens up for you. If not, we offer a 100% money-back satisfaction guarantee (we're passionate about having happy customers around here). 

 

Enjoy!

  • Like 2
Link to comment
Share on other sites

  • 7 months later...
On 1/2/2023 at 4:08 AM, GreenSock said:

Welcome to the forums, @jeeezzzzzyyyyyy

 

That's because ScrollSmoother is a membership benefit of Club GreenSock and it looks like you haven't joined yet. See https://greensock.com/club

 

ScrollSmoother is not in the public "gsap" package. Once you sign up for Club GreenSock, you get access to a private repo, or you can just download a zip with the files and it also contains a .tgz file that you can npm install. Whatever works best with your workflow. Installation instructions are here.

 

You can use the "gsap-trial" package if you'd like to try any of the members-only plugins on CodePen, CodeSandbox, StackBlitz or locally for FREE. They won't work if you try deploying those files anywhere except a whitelisted domain. 

 

Hopefully you'll find that the Club GreenSock membership pays for itself very quickly when you consider all the time it saves, the performance and compatibility benefits, and all the capabilities it opens up for you. If not, we offer a 100% money-back satisfaction guarantee (we're passionate about having happy customers around here). 

 

Enjoy!

Hi,

 

We would like to test this plugin before buying a membership. We tried installing gsap-trial for this, but we get redirected to a greensock error-page.

Is there a way we can test locally? For Local development we use ddev so the URL for our local development is SITENAME.ddev.site

 

Can we whitelist this for our account or how can we have access to this for just local development?

 

Screenshot2023-08-09at10_07_59.thumb.png.8bdcb8e6a71f37e8905b9ec540cb6587.png

Link to comment
Share on other sites

Hi @MOQO welcome to the forum!

 

The trial plugins can't sense every possible local environment, it just tests if the URL starts with "file://" OR contains "localhost" or "127.0.0.1". You are welcome to use those CodePen-safe trial files on CodeSandbox.io or StackBlitz.com. 

 

We hope to see you soon as a Club Greensock member 🎉

 

  • Like 3
Link to comment
Share on other sites

6 hours ago, mvaneijgen said:

The trial plugins can't sense every possible local environment, it just tests if the URL starts with "file://" OR contains "localhost" or "127.0.0.1". You are welcome to use those CodePen-safe trial files on CodeSandbox.io or StackBlitz.com. 

 

Yep, that's exactly right. And it'll also allow any IP address. 👍

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