mimamuh
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by mimamuh
-
-
Hi,
I've tried to import modules from gasp (1.9.1) with npm and webpack 2.2 but I think I made something wrong as I don't get the libs??
For example, when I import 'gsap/TweenLite' I get an Object back, but it has no 'to' property:
import TweenLite from 'gsap/TweenLite'; console.log(TweenLite); // => Object {} console.log(TweenLite.to); // => undefined
Shouldn't it be both functions?
The same happens when I try to import TweenMax like:
import TweenMax from 'gsap'; console.log(TweenMax); // => Object {} console.log(TweenMax.to); // => undefined
When I try to import TweenLite directly I simply get nothing:
import { TweenLite } from 'gsap'; console.log(TweenLite); // => undefined
I'm not sure if it is a issue of mine, as I use greensock the first time.
Does anybody have an idea?
Thx!
Can't import using webpack 2.2 and gasp with npm
in GSAP
Posted
Okay, I've found my issue:
I accidentally loaded the lib in the head already which caused the trouble: