I am having trouble importing my libraries

https://63e678489812eb00b2f5262d--amazing-sunburst-ea153a.netlify.app

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!

It’s coming from this file: https://63e678489812eb00b2f5262d--amazing-sunburst-ea153a.netlify.app/main.js

You need to use a JavaScript bundler like Webpack or ESBuild to actually bundle the files. This is not a Netlify issue.