Jump to content
Search Community

Scrollsmooter - Uncaught TypeError: Cannot read properties of undefined (reading 'name')

SteinbachDigital test
Moderator Tag

Recommended Posts

Hi,
I just wanted to give scrollsmoother a try. My normal gsap setup runs good, until I register Scrollsmoother. 

 

import {gsap} from "gsap";
import {ScrollTrigger,ScrollSmoother} from "gsap/ScrollTrigger";
//without this line, ScrollToPlugin may get dropped by your bundler (tree shaking)...
gsap.registerPlugin(ScrollTrigger,ScrollSmoother);

 

added gsap@3.10.3 via yarn.

 

any idea what is wrong?

 

thx

 

ToM

Link to comment
Share on other sites

  • SteinbachDigital changed the title to Scrollsmooter - Uncaught TypeError: Cannot read properties of undefined (reading 'name')
14 minutes ago, Cassie said:

Ah - I just saw your title, apologies. 

Would you mind stepping the version down to @3.10.2 for me and letting me know if that solves the issue?

downgraded to 3.10.2. same error.

when I look into my node_modules folder of gsap I cant see a file called scroolsmoother. I think the file is missing. 

Screenshot 2022-04-13 at 15.05.16.png

Link to comment
Share on other sites

I'm not a yarn user but do you have a package.json?

It might look something like this.

 

{
  "name": "something",
  "version": "0.1.0",
  "dependencies": {
    "@gsap/shockingly": "3.10.2",
    "gsap": "npm:@gsap/shockingly",
  },
}


If you change the version and run install again it should change the version

Link to comment
Share on other sites

30 minutes ago, Cassie said:

I'm not a yarn user but do you have a package.json?

It might look something like this.

 

{
  "name": "something",
  "version": "0.1.0",
  "dependencies": {
    "@gsap/shockingly": "3.10.2",
    "gsap": "npm:@gsap/shockingly",
  },
}


If you change the version and run install again it should change the version

sorry, I changed my previous answer because I was able to downgrade. 
 

downgraded to 3.10.2. same error.

when I look into my node_modules folder of gsap I cant see a file called scroolsmoother. I think the file is missing. 

Screenshot 2022-04-13 at 15.05.16.png

Edited by SteinbachDigital
added more infos
Link to comment
Share on other sites

  • 11 months later...

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