Description
Version
2.7.3
Screen
Steps to reproduce
Unsure, I'm very confident I will not be able to provide a reproduction, this is happening on a big app with a few vuex plugins when upgrading from v2.6.14 to v2.7.3
What is expected?
No error
What is actually happening?
[Vue warn]: Error in nextTick: "TypeError: Cannot read properties of undefined (reading 'on')"
This is on this line https://github.com/vuejs/vue/blob/main/src/v3/currentInstance.ts#L22
It seems in some very obscure case that I will not be able to reproduce (seems triggered by a watcher from vuex)
Based on debugging it seems in some case, setCurrentInstance
is called on a vm that is still uninitialized and so the _scope
property is still undefined
when called (as you can see it's a comment, because it's comming from a component with a v-if="false"
)
The stack strace, shows that it's coming from this setCurrentInstance