Jump to content


ScrollSmoother - Uncaught SyntaxError: Unexpected token 'export'

Recommended Posts



I'm currently attempting to initiate ScrollSmoother but I'm getting the error Uncaught SyntaxError: Unexpected token 'export


I'm not completely new to GSAP, having used it as well as ScrollTrigger and SplitText for a handful of projects, but I'm for some reason unable to get ScrollSmoother to work properly.


Any ideas why this would be happening?


I have my html set up properly, with the entire site wrapped in #smoother-wrapper and the content wrapped in #smoother-content.


I'm also seeing the error ScrollSmoother is not defined.


Screen Shot 2022-04-04 at 2.34.01 PM.png

Screen Shot 2022-04-04 at 2.37.20 PM.png

Screen Shot 2022-04-04 at 2.37.49 PM.png

Link to comment
Share on other sites

Hi neontrenton, 


It sounds like you are trying to use the module versions of those files. Try using the files that are located inside the minified folder.


  • Like 1
  • Thanks 1
Link to comment
Share on other sites

That did it. Thanks so much!

  • Like 1
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.