Vue3 vite build shows blank page - please help #8064
-
Hello, i have vue3 + vite custom element deployment. When i build the app using
The app runs perfectly fine in the dev mode. I have tried countless hours trying to troubleshoot this, if someone can help please advise Here is the link to my code deployed on stackblitz https://stackblitz.com/edit/vitejs-vite-rdzq9f Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
After compilation, it can be accessed normally through the preview command. I think you should check your deployment method. |
Beta Was this translation helpful? Give feedback.
-
So anyone facing this issue, please remember to put your app in the root of your web server directory to make it work correctly.. |
Beta Was this translation helpful? Give feedback.
This depends on the configuration of your server directory and access path. The resource files built by default are relative addresses. You can check whether it is a resource 404 in the console.