Omarhab Posted December 9, 2019 Share Posted December 9, 2019 my angular app animations works fine precompiled. but after compiling with webpack. The `main.ts` file errors out after starting the universal server with r.TimelineMax is not a constructor I tried many things but nothing to report here because this problem did not seem to be caused by a change in the environment. It was working post compile at somepoint. Can anyone help me understand why compiling with webpack would cause this? Link to comment Share on other sites More sharing options...
GreenSock Posted December 9, 2019 Share Posted December 9, 2019 Hm, it's tough to troubleshoot blind - what version of GSAP are you using? If you're using v3, I wonder if you accidentally used the "new" keyword like: // BAD! var tl = new gsap.timeline(); // GOOD var tl = gsap.timeline(); Just a guess. Otherwise, we'll really need to see a reduced test case to help diagnose. Maybe tree shaking bit you? I kinda doubt it with that message, though. 1 Link to comment Share on other sites More sharing options...
Omarhab Posted December 10, 2019 Author Share Posted December 10, 2019 ok. unfortunately it is very hard to provide a test env. however — the problem was mysteriously resolved by clearing cache. so there was no problem with compiling. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now