My site works perfect when hosted locally, I am using Vite. But when I deploy, I get the error:
Failed to resolve module specifier “three”. Relative references must start with either “/”, “./”, or “…/”.
I tried using cdns and import maps but don’t have the knowledge to complete it. Can I please get some help with importing gsap, three, three addons, and theatre js via cdns or any functioning way because I am clueless. Thank you very much!