Hello,
using typescript 5.2.2
webpack 5.88,
gsap latest
after recently trying the free version of gsap, we decided to move to the business one. I have set up the .npmrc and added @gsap/business to my package.json, and then installed it with npm i.
The previous imports that worked with the free version, have stopped working with the business one.
import { gsap } from 'gsap';
this now throws an error that it cannot find the module, however it appears to be typed correctly.
When trying to run it with webpack, this causes a module can't be found error, it seems to be looking for node_modules/gsap but gsap business gets installed in @gsap.
Importing like this:
import { gsap } from '@gsap/business/gsap-core';
import { PixiPlugin } from '@gsap/business/PixiPlugin';
works with webpack, but I lose the types and eslint still complains.
Going into gsap.core.d.ts shows a few errors: