Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Torrfura

Members
  • Posts

    3
  • Joined

  • Last visited

Torrfura's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. I'm using gsap through NPM, packaged with webpack. If I do import TweenLite from 'gsap/TweenLite'; I don't have access to the dom elements, I get thrown an error. But if I import as following: import TweenLite from 'gsap'; It works, but then everything is included in the package, TweenMax etc... Anyone stumbled upon this problem?
  2. Hi, been busy building more and haven't had a chance to follow up on this. I found the problem, it would be nice is someone with more webpack / node skills than me could verify. It all has to do with the webpack UglifyJsPlugin, and the setting "pure_getters". When having this set to true, I get the error. There's no impact on .js size in the end, so I just removed the property. But I cannot give any explanation to what lies beneath this problem.
  3. Hi, I have a problem using gsap through bower, compiled with webpack. My shim looks like this: webpack: { defaults: { plugins: [ new webpack.ProvidePlugin({ ... '$': 'jquery', 'TweenLite': 'gsap' ... }) ], externals: { jquery: 'window.jQuery', 'TweenLite': 'gsap' } } } Everything works just fine when my project is not minified / compiled to build-version, where I end up getting this error message: Uncaught TypeError: Cannot set property 'gsClass' of undefined It works perfect when developing, even though it's run through an entry, main.js... Very confusing. Anyone had this problem before?
×