GSAP & NPM/Webpack `import` for ScrollToPlugin in GSAP Posted August 11, 2016 I'm having the same issue. The alias fix is working fine, but only for TweenLite. I have the following config. alias: { TweenLite: 'gsap/src/uncompressed/TweenLite', TweenMax: 'gsap/src/uncompressed/TweenMax', Easing: 'gsap/src/uncompressed/easing/EasePack', ScrollToPlugin: 'gsap/src/uncompressed/plugins/ScrollToPlugin' } Everything works, except TweenMax. Uncaught TypeError: _TweenMax2.default.to is not a function _TweenMax2.default is simply an empty object. Any clues?
GSAP & NPM/Webpack `import` for ScrollToPlugin
in GSAP
Posted
I'm having the same issue. The alias fix is working fine, but only for TweenLite. I have the following config.
Everything works, except TweenMax.
_TweenMax2.default is simply an empty object.
Any clues?