Closed kdschaffe closed 6 years ago
Sounds like you need to update Webpack. Those modules are definitely exported in GSAP, so this sounds like an issue in that old beta version of Webpack.
Yeah, I wondered that. Just noticed the latest versions of gsap were dealing with the module system. Also, it works fine in 1.20.4 and 1.20.3 (haven't gone back any further). I'll see if I can find out more, though. Thanks for the quick response.
That version of Webpack may just work better with the older UMD style, which is still available in the latest GSAP release - it's just in a /umd/ subfolder. So you'd import like this for example:
//notice the /umd/ in the path
import { TweenMax, Power2, TimelineMax } from "gsap/umd/TweenMax";
Does that clear things up?
Sure does. I tested out the alternative import and that gets rid of the warnings and works just the same. Thanks for the help.
Excellent! Enjoy!
I'm receiving the following Warnings with 1.20.5, 1.20.6, and 2.0.0(latest):
This occurs without any usage/imports of gsap in my application.
I'm using webpack 2.1.0-beta.20.