You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
After playing around with this issue i have a solution but im not sure of the implications across other areas of vite.
in the error middleware instead of just calling res.end() a small html page could be sent with the error pre-serialized
this would also require ErrorOverlay to be exported
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
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: