Hi,
I'm trying to start using gsap in Vue with Typescript application.
I started to download gsap using npm (npm i gsap).
Then I wanted to import the library by :
import { TweenLite, Linear } from 'gsap';
Then i got the following error :
"cannot resolve definitions for module gsap"
I assumes I need to install typescript definition (right ?)
npm install @types/greensock
and added the following in the tsconfig.app.json
"types": ["greensock"]
Now I ge
The whole types thing is screwy, but there are 2 different versions.
@types/greensock is the old version which has the conflict.
https://www.npmjs.com/package/@types/greensock
@types/gsap is the newer, but still incomplete version. It shouldn't have that problem as the Animation class is now inside a "gsap" namespace.
https://www.npmjs.com/package/@types/gsap