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
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.
niuiic
changed the title
HMR failed in specifix situation
HMR failed in specific situation
Jun 20, 2024
niuiic
changed the title
HMR failed in specific situation
HMR won't work on vue files if import other packages in the monorepo
Jun 20, 2024
niuiic
changed the title
HMR won't work on vue files if import other packages in the monorepo
HMR won't work on vue files if import other packages which are in the same monorepo
Jun 20, 2024
Describe the bug
Edit a file in a package of a monorepo. No HMR, no reload, but vite log shows that the module has been updated.
Reproduction
https://github.com/niuiic/vue-fusion
Steps to reproduce
Edit
packages/styles/src/App.vue
, just add aconsole.log('hello')
in script.No reload, no HMR.
However HMR works when change code in
<style>
.In addition, If I remove some code in
App.vue
andmain.ts
, HMR would be able to work, but not always.In another similar project (almost the same, but not a monorepo).
Edit
src/App.vue
.HMR works.
System Info
Used Package Manager
pnpm
Logs
vue-fusion styles
vue-resources
Validations
The text was updated successfully, but these errors were encountered: