Skip to content

Change to 404 quikly when i open the index.html with chrome after build #1103

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
ltstriker opened this issue Dec 13, 2018 · 7 comments
Closed

Comments

@ltstriker
Copy link

I build a page just like the guide.It works well when using dev. But after build, it change to 404 quickly when i open the index.html with chrome.I refresh it.It can be seen that the right page will be made but I do not know why it change to 404.

follow is my configure.json

module.exports = {
base: '/retryvpress/.vuepress/dist/',
title: ' asd ',
description: 'asd blog',
}

// the base seems must be that, or the js file cannot be found

  • Your OS: win10
  • Node.js version: v8.12.0
  • Browser version: chrome 版本 69.0.3497.100
  • Is this a global or local install? global
  • Which package manager did you use for the install?
    I have tried both npm and yarn.
@ulivz
Copy link
Member

ulivz commented Dec 13, 2018

To report an issue that only happens in the scene you are in, the best and direct way is to provide a reproduction repo (e.g. vuepress-issue-example), otherwise I don't know where you are going wrong.

@ltstriker
Copy link
Author

Here is the repo https://github.com/ltstriker/retryvpress .

@ulivz
Copy link
Member

ulivz commented Dec 13, 2018

Hmmm... so which version of VuePress did you use?

@ltstriker
Copy link
Author

0.14.8
Thanks.

@ltstriker
Copy link
Author

So sorry.I made a mistake about the repo.
I refresh the repo.the old one is the version the js file not found..The new one is what i am asking about.
just the base change
// my repo is in E:/retryvpress/
base: '/retryvpress/docs/.vuepress/dist/',

@ulivz
Copy link
Member

ulivz commented Dec 13, 2018

the base seems must be that, or the js file cannot be found?

Are you sure? Hmmm... don't know what to say.

@ulivz
Copy link
Member

ulivz commented Dec 13, 2018

The usage of your repro is very normal and it should work and it really works for me. so it should be caused by the damn windows.

Let's move to #913 to continue if you could provide an invalid repro so that other windows users could help you.

@ulivz ulivz closed this as completed Dec 13, 2018
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

2 participants