I have come across this problem anytime that I try to add and use an alias to Vite. It will work some of the time and not others.
Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../"
I'm trying to upload my website on cPanel. The thing is, the website is working fine in the local environment. But when I uploaded the site on cPanel, I got the following error in my console/network tab (site is showing blank).
Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../". I'm not sure whether it is a path issue (as it's working fine on local environment before and after build)
Tech Stack
1- Laravel
2- Vuejs/Inertia Js with vite
Any suggestions or lead will be highly appreciated. Below is the directory structure of my local vs cPanel environment
Please or to participate in this conversation.