Relative Content

Tag Archive for vue.jsvite

vue3+vite5: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/html”

Please ask a question about vite packaging. I made a project with springboot3 + vue3 + vite5. The local operation is normal, but I encountered a problem when packaging. That is, after packaging, there are only a few files in the dist folder. Is it normal? In addition, the following problems have arisen. I do not know why?
After packaging and putting it on the server, the home page (login page) can be accessed, but after entering the user name and password, Click login, and the following error appears:

Vue app getting a _plugin-vue_export-helper 404 error when deployed

Trying to publish an app I’m building to my https://xxxx.github.io/ but am getting the error “GET https://xxxx.github.io/assets/_plugin-vue_export-helper-DlAUqK2U.js net::ERR_ABORTED 404 (Not Found)”, but only on certain pages. Not sure what is different about the pages with the issue vs without.
Also not sure what this plugin even is. I assume it must be inherited down the node_modules pool somewhere. But, how do I get around this. I assume it has something to do with the name starting with an underscore? The file is there, but still 404ing.
Works perfectly fine when ‘npm run dev’