Skip to content

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

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

Closed
volkanciloglu opened this issue Jul 26, 2018 · 12 comments

Comments

@volkanciloglu
Copy link

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-bot
Copy link

vue-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!

@vue-bot vue-bot closed this as completed Jul 26, 2018
@yyx990803
Copy link
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

@volkanciloglu
Copy link
Author

volkanciloglu 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
Copy link
Member

Use baseUrl: '' in that case.

@volkanciloglu
Copy link
Author

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

@monsalvediego12
Copy link

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

How solve men?

@dirkteucher
Copy link

The config value is here FYI ... https://cli.vuejs.org/config/#global-cli-config ... You need to create a vue.config.js file next to the package.json in the root of the project. This is helpful to get Vue to build files that will work nicely with Cordova and Android builds.

@AurioPinto
Copy link

I solved this problem by removing the mode: "history"
Screenshot from 2019-10-23 19-24-14

@arfrix
Copy link

arfrix commented Dec 15, 2019

just add this line on vue.config.js
publicPath: ''

@eslamabdallah74
Copy link

just add this line on vue.config.js
publicPath: ''

where is vue.config.js ?
i don't have it

@fongziyjun16
Copy link

you have create it in you project folder

@MD7709
Copy link

MD7709 commented Apr 21, 2024

sir i have create a music app using javascript all work javasrrip catch the songs folder song and show result in index html but when i upload its in github git not show my songs directry when try to see link through song directrey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants