Jump to content
Search Community

mimamuh

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by mimamuh

  1. 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!

×
×
  • Create New...