To run native modules in the browser, the script tag has to have a module type on it.   <script type="module"> import { gsap } from "./node_modules/gsap/index.js"; gsap.to(".foo", { x: 200 }); </script>   But I don't want to confuse you with that, because basically nobody does it that way because they use some sort of build tool. I would recommend using snowpack or parcel to get started. With those, you don't have to worry about the script tag, and you can impor
    • Thanks
    • Like
    3