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
The issue is triggered by assigning a simple variable on a button click. This variable is also passed as a prop to another element. There is an extra <div> inside <teleport>, which seems redundant, but the error actually disappears without it.
The error:
[email protected]:26 TypeError: Cannot set properties of null (setting '__vnode')
at patchElement (vue.js?v=bd95302b:7030:18)
at processElement (vue.js?v=bd95302b:6913:7)
at patch (vue.js?v=bd95302b:6770:11)
at patchKeyedChildren (vue.js?v=bd95302b:7681:9)
at patchChildren (vue.js?v=bd95302b:7595:11)
at patchElement (vue.js?v=bd95302b:7067:7)
at processElement (vue.js?v=bd95302b:6913:7)
at patch (vue.js?v=bd95302b:6770:11)
at patchKeyedChildren (vue.js?v=bd95302b:7681:9)
at patchChildren (vue.js?v=bd95302b:7595:11)
And warning:
vue.js?v=bd95302b:2626 [HMR] Something went wrong during Vue component hot-reload. Full reload required.
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
plugin-vue
plugin-vue-jsx
Describe the bug
The issue is triggered by assigning a simple variable on a button click. This variable is also passed as a prop to another element. There is an extra
<div>
inside<teleport>
, which seems redundant, but the error actually disappears without it.The error:
And warning:
Reproduction
https://stackblitz.com/edit/vitejs-vite-oghvpvdz?file=src%2FApp.vue
Steps to reproduce
App.vue
- HMR works.App.vue
again - there's now an error in the browser console, and HMR no longer works.System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: