New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load resource: the server responded with a status of 404 (Not Found) app.c2115832.js:1 #1955

Closed
VCodepp opened this Issue Jul 26, 2018 · 6 comments

Comments

Projects
None yet
4 participants
@VCodepp

VCodepp commented Jul 26, 2018

I use 'vue ui' and create project . I run the build command without changing anything. When I run the index.html file from the generated dist folder, I get a few errors in the console

Failed to load resource: the server responded with a status of 404 (Not Found)
app.c2115832.js:1 
Failed to load resource: the server responded with a status of 404 (Not Found)
chunk-vendors.fb29d323.js:1 
Failed to load resource: the server responded with a status of 404 (Not Found)
app.c2115832.js:1 
Failed to load resource: the server responded with a status of 404 (Not Found)
app.8d0d60ac.css:1 
Failed to load resource: the server responded with a status of 404 (Not Found)

the files are in the folder

dist
| - index.html
| - favicon.ico
|  css
|  | - app.8d0d60ac.css
|  js
|  | - app.c2115832.js
|  | - app.c2115832.js.map
|  | - chunk-vendors.fb29d323.js
|  | - chunk-vendors.fb29d323.js.map
|  img
|  | - logo.82b9c7a5.png

do I have to make extra adjustments?

@vue-issue-bot

This comment has been minimized.

vue-issue-bot commented Jul 26, 2018

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

@yyx990803

This comment has been minimized.

Member

yyx990803 commented Jul 26, 2018

You need to serve the directory over HTTP. It does not work over file://.

https://cli.vuejs.org/guide/deployment.html#previewing-locally

@VCodepp

This comment has been minimized.

VCodepp commented Jul 26, 2018

I tried using xampp localhost. the same problem

That's my url address
'http://localhost/dist/'

I changing the question. I want to make sure that I can run it on any website after using the build

@yyx990803

This comment has been minimized.

Member

yyx990803 commented Jul 26, 2018

Use baseUrl: '' in that case.

@VCodepp

This comment has been minimized.

VCodepp commented Jul 26, 2018

thank so much. I used baseUrl '' and solved problem

@monsa12

This comment has been minimized.

monsa12 commented Oct 6, 2018

thank so much. I used baseUrl '' and solved problem

How solve men?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment