pwa icon indicating copy to clipboard operation
pwa copied to clipboard

unable to run the project in production mode.

Open rassemdev opened this issue 7 years ago • 4 comments

I'm having this problem while running in production mode. After running those command vue init pwa my-project cd my-project npm install Then I used npm run build and then locate to http://localhost/my-project/dist .. but nothing is showing. Can anyone help how to run the project in production mode.

rassemdev avatar Mar 20 '18 10:03 rassemdev

Can you view the source? You should see the contents of index.html. What do you see in the web console?

niutech avatar Mar 22 '18 12:03 niutech

If I am not mistaken, in production mode you can not load from a folder. You do need a webserver such as nginx or some node express to serve your pages. (FireFox is a bit more foregiving with loading for a folder, but still webserver is needed)

tvld avatar Apr 05 '18 13:04 tvld

I'm having this same issue, even after publishing to an Apache server. Files are loading correctly when viewing the network, but a blank page is just shown. Please help.

Oluwatemilorun avatar May 30 '18 04:05 Oluwatemilorun

After production build, and open up my console and saw scripts are not found. So i edited index.html file. I edited all script src location

Note: as everything was building in "yourport/dist" folder i edited index.html which was located inside dist folder

rassemdev avatar May 30 '18 04:05 rassemdev