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

vite4.0版本,运行npm run preview 刷新后会404 #11323

Closed
7 tasks done
sunjianxu opened this issue Dec 12, 2022 · 4 comments
Closed
7 tasks done

vite4.0版本,运行npm run preview 刷新后会404 #11323

sunjianxu opened this issue Dec 12, 2022 · 4 comments

Comments

@sunjianxu
Copy link

Describe the bug

问题:vite4.0版本,运行npm run preview 刷新后会404,小于4.0.0版本的vite则不会。

路由:vue-router的模式是history。

Reproduction

Steps to reproduce

npm run preview

System Info

window10 x 64

Used Package Manager

npm

Logs

Validations

@fc
Copy link
Contributor

fc commented Dec 12, 2022

Possible dupe of this one? #10925

@github-actions
Copy link

Hello @sunjianxu. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

@haiting
Copy link

haiting commented Dec 12, 2022

请问你的项目是用create-vite创建的吗?我的是从布vue3-webpack迁移过来,一直build有问题

@sunjianxu
Copy link
Author

请问你的项目是用create-vite创建的吗?我的是从布vue3-webpack迁移过来,一直build有问题

是的。我这边打包没问题。你复制错误的信息到搜索引擎搜搜看

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants