Reallllly basic starter issue, (sorry).
I am getting error after error trying to load GSAP into my basic project.
Steps:
npm install gsap
That worked fine of course, but now trying to import it is doing my head in.
I started by creating a js file (output.js), adding the import code from the installation page:
import { gsap } from "gsap"
Then imported it into my HTML as so (adding type="module" when it threw up Uncaught
Hi @kitzmiller and welcome to the GreenSock forums!
It seems to me that you're not properly compiling and bundling your files. In order to compile and bundle NPM modules and your custom JS Module files (where you import GSAP and other packages, export your own constants, variables, methods, objects, etc. to make them accessible in other modules) you need to run a bundler like Webpack, Vite or Parcel, just to name a few. It seems to me that the error stems from that.
If yo