0

I'm running into this problem while I'm trying to deploy a very simple vue3 app.

when running npm run serve the app shows up as intended. when running npm run build and opening up the /dist/index.html I recive a semi-empty page.

enter image description here

In both versions I do not have an error in the console (besides anti-tracking on the dev server)

I added a vue.config.js file in the project directory which contains the following:

module.exports = {
  publicPath: process.env.NODE_ENV === 'production' ? '' : '/'
}

before adding this config file the page ended up being completely blank (white).

the Project itself is almost the same as from vue create project. only added content, css to src/App.vue, src/views/Home.vue and google/hotjar tracking to public/index.html

I'm thankful for any hints to help me solve this issue.

lechnerio
  • 688
  • 10
  • 28

0 Answers0