Jump to content
Search Community

gsap.utils.checkPrefix is not a function

Jesus Piedrahita test
Moderator Tag

Go to solution Solved by Jesus Piedrahita,

Recommended Posts

Unless you're a very advanced user who doesn't need any CSS animating functionality, you should NOT be importing the "gsap-core" file from the raw src directory. That doesn't include CSSPlugin. Again, it's only intended for very advanced users who have particular needs (no use for CSS animating) - that's almost nobody. :)

 

Typically you don't have to write out the whole path like that anyway - just use the default like: 

import gsap from "gsap";
import ScrollTrigger from "gsap/ScrollTrigger";

If you really want to write out the whole path, then use the index.js file, not gsap-core.js. 

  • 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.
×
×
  • Create New...