Skip to content
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
volkanciloglu opened this issue Jul 26, 2018 · 9 comments

Comments

@volkanciloglu
Copy link

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

@vue-bot 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 Jul 26, 2018
@yyx990803
Copy link
Member

@yyx990803 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 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

@yyx990803 yyx990803 commented Jul 26, 2018

Use baseUrl: '' in that case.

@volkanciloglu
Copy link
Author

@volkanciloglu volkanciloglu commented Jul 26, 2018

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

@monsa12
Copy link

@monsa12 monsa12 commented Oct 6, 2018

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

How solve men?

@dirkteucher
Copy link

@dirkteucher dirkteucher commented Feb 24, 2019

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

@AurioPinto AurioPinto commented Oct 23, 2019

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

@arfrix
Copy link

@arfrix arfrix commented Dec 15, 2019

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

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

Successfully merging a pull request may close this issue.

None yet
7 participants