title: GSAP fails to import
body: <p>I am trying to include gsap into a JavaScript file and even it being very straight forward it will not load. I am using what GreenSock docs say to do and still no luck. I have added &quot;type&quot;: &quot;module&quot; in the json file and the script file I am import into. In my HTML has type=&quot;module included and I have a class module already imported into it. It is working fine.</p>
  <p>After doing a npm install gsap and it is in my .json file &quot;gsap&quot;: &quot;^3.11.0&quot;</p>
  <p>They say include this at the very top of the file using it: import {gsap} from &quot;gsap&quot;<br />
  Doing so only throws a console error:
  Uncaught TypeError: Failed to resolve module specifier &quot;gsap&quot;. Relative references must start with either &quot;/&quot;, &quot;./&quot;, or &quot;../&quot;.</p>
  <p>I didn't include any of those being it is a npm install not a cdn script, then on a whim I did try to include any one of those and still nothing. But the error now reads:<br />
  GET ###url####ERR_ABORTED 404 (Not Found) looking for a file in my directory. With npm install there is no file just a node_module.</p>
  <p>Will just go to the cdn version but just wondering why this is a problem? I am using a tutorial and even the npm isntall steps he uses worked. But when I try it fails .... included image and with or with a &quot; ./  &quot; director included nothing loads<a href="https://i.stack.imgur.com/vtaM7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vtaM7.png" alt="enter image description here" /></a></p>