Throw "TypeError: Cannot read property 'nextSibling' of undefined" on vite hmr
Version
3.1.4
Reproduction link
https://github.com/ycs77/vue-3.1.3-hmr-bug-demo
Steps to reproduce
yarn
yarn dev
and open browser: http://localhost:3000- open
src/App.vue
- replace line 3 class
max-w-screen-sm
tomax-w-screen-md
and save file - replace line 3 class
max-w-screen-md
tomax-w-screen-lg
and save file
What is expected?
hmr working, and no throw errors
What is actually happening?
Throw error: "TypeError: Cannot read property 'nextSibling' of undefined"
this bug exists in both v3.1.3 and v3.1.4
if downgrading vue
and @vue/compiler-sfc
to v3.1.2 will no this bug
I didn't reproduce the bug.
- download your repro
- remove
yarn.lock
- update both
vue
andvue/compiler-sfc
to3.1.4
- yarn
- yarn dev
- replace line 3 class max-w-screen-sm to max-w-screen-md and save file
works fine. This bug has already fixed in https://github.com/vuejs/vue-next/commit/fded1e8dfa22ca7fecd300c4cbffd6a37b887be8
@edison1105 Need to modify 2 times and save
- replace line 3 class
max-w-screen-sm
tomax-w-screen-md
and save file - replace line 3 class
max-w-screen-md
tomax-w-screen-lg
and save file - look the error message:
fixed by c0db807
Can I use that commit now? I have same problem.
fixed by c0db807
Can I use that commit now? I have same problem.
not release yet