Hi,
Sorry for jumping in, but I have a maybe directly related issues detected.
I have a project setup of:
- React 16.4.0
- Typescript 2.8.3
- gsap 2.0.1 (types 1.19.2)
- Webpack 4.10.2
The react stuff is written in typescript as TS / TSX files.
I tried to get it working but I had multiple resolution problems.
GSAP is installed as NPM module.
Only working version based on 2.0.1 and prior is:
import {TimelineMax} from "gsap/TimelineMax";
import {TweenMax} from "gsap/TweenMax";
import {Back, Linear, Quad, Quint} from "gsap/umd/EasePack";
In case I use gsap/EasePack instead of umd it will compile fine, but as soon as I try to run my application in browser, I will get errors like:
During runtime.
Easing packages have auto complete as usual and compiler reports no errors.
In case I try to avoid mixing umd and none umd files by loading all classes from umd directory, I get errors during runtime like:
It looks for me like something went wrong during static exports of EasePack.
For the moment mix of none umd for usual stuff and umd for easing package will fix the issues, but the solution is not elegant.
By the way, Webstorm import resolution is not really working well with the current gsap structure