-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Working directly with html files doesn't provide the best developer experience #6175
Copy link
Copy link
Closed
Labels
Description
Describe the bug
When working with html files saving them in a invalid state causes the browsers to do a page reload and receives a 500 response code defaulting to the browsers error page. when you fix the html file the browser requires a manually refresh from the user.
when you return back to the browser a error overlay will show with error that should of been shown when the invalid index.html was first parsed
Reproduction
vite.html.reload.mp4
System Info
System:
OS: Linux 5.10 Ubuntu 20.04.2 LTS (Focal Fossa)
CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
Memory: 21.29 GB / 25.01 GB
Container: Yes
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 16.13.1 - ~/.volta/tools/image/node/16.13.1/bin/node
Yarn: 1.22.17 - ~/.volta/tools/image/yarn/1.22.17/bin/yarn
npm: 8.1.2 - ~/.volta/tools/image/node/16.13.1/bin/npmUsed Package Manager
yarn
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable