Jump to content
Search Community

Uncaught ReferenceError: ScrollSmoother is not defined

studio mast test
Moderator Tag

Recommended Posts

Hi,

 

I have a Gsap shockingly green membership and I want to install scroll smoother.

 

I followed all the steps of the install video / dashboard guidelines.

First I created a .npmrc file with

vim ~/.npmrc

and paste in the dashboard token.

 

After this I did the npm command: 

npm install gsap@npm:@gsap/shockingly

I work with Vitejs and in my javascript I placed:

import { gsap } from "gsap/dist/gsap";
import { ScrollTrigger } from "gsap/dist/ScrollTrigger";

gsap.registerPlugin(ScrollTrigger, ScrollSmoother);

 

import { gsap } from "gsap/dist/gsap";
import { ScrollTrigger } from "gsap/dist/ScrollTrigger";

gsap.registerPlugin(ScrollTrigger, ScrollSmoother);

 

GSAP and scrolltrigger works fine (when I don't include the scrollsmoother)

But when I include the ScrollSmoother I got this message in the console:

 

Uncaught ReferenceError: ScrollSmoother is not defined

 

 

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