Jump to content


Error while loading TweenMax.min.js: Cannot read property 'greensock' of undefined

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I have a website in which I'm trying to load the TweenMax tag; https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/TweenMax.min.js

Everytime I try to do it, I get this:

TweenMax.min.js:16 Uncaught TypeError: Cannot read property 'greensock' of undefined
    at Function.<anonymous> (TweenMax.min.js:16)
    at check (jquery.themepunch.tools.min.js?rev=4.6.0&ver=4.8.2:59)
    at new c (jquery.themepunch.tools.min.js?rev=4.6.0&ver=4.8.2:59)
    at t._gsDefine (jquery.themepunch.tools.min.js?rev=4.6.0&ver=4.8.2:59)
    at TweenMax.min.js:16
    at TweenMax.min.js:16

But, when I load the TweenLite tag (https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.2/TweenLite.min.js) before hand, the TweenMax tag loads just fine.

The website I'm trying to add this to is: http://www.pergunteaumamulher.com/ (it's in Brazilian portuguese).


You can try to add the tag in the console to see the behavior I'm pointing out.


Have you ever seen something like this?

I believe it might be the same problem we have seen in here:


Has it ever being addressed?




Link to comment
Share on other sites

Hi @jackalopy :)


Welcome to the forum.


I'm wondering if themepunch is loading a different version of TweenMax and a conflict is created when you load 1.20.2? Just a guess, but something to look at. Others may jump in here too.


Happy tweening.




  • Like 1
Link to comment
Share on other sites

Well, I tried to access some of the global features we have in TweenMax and I wasn't successful.

Maybe you're in the right track, but I believe it's not exactly that.

Link to comment
Share on other sites

I agree with PointC. Let us know if you still have a problem after removing ThemePunch.

If a problem persists, please produce a reduced test case with just the minimal amount of code necessary to replicate the error.

We'd love to help but there isn't much we can do to debug a live site.

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