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 importing a ts file into a vue file vite at first will do hmr properly and you'll see the page refresh when making edits to the ts file, but once you make a change to the vue template hmr no longer works when editing that ts file. You will see in the node console "[vite] hmr update ..." and in the browser console "[vite] hot updated: ...", but the page never updates with the changes made to the ts file.
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 vuejs/core instead.
Related plugins
Describe the bug
When importing a ts file into a vue file vite at first will do hmr properly and you'll see the page refresh when making edits to the ts file, but once you make a change to the vue template hmr no longer works when editing that ts file. You will see in the node console "[vite] hmr update ..." and in the browser console "[vite] hot updated: ...", but the page never updates with the changes made to the ts file.
Reproduction
https://stackblitz.com/edit/vitejs-vite-vmmtoz?file=src%2Ftest.ts
Steps to reproduce
Initial Check:
Everything will seem to be working fine, now do the following after the initial check:
Breaking HMR:
Break HMR:
Check Result of Breaking HMR:
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: