-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Description
Vue version
v3.5.13
Link to minimal reproduction
Steps to reproduce
When you click the update button to update the component status, the console will report an error
What is expected?
Should not report an error
What is actually happening?
Error:
TypeError: Cannot read properties of null (reading 'emitsOptions')
at shouldUpdateComponent (vue.runtime.esm-browser.js:8774:27)
at updateComponent (vue.runtime.esm-browser.js:7336:9)
at processComponent (vue.runtime.esm-browser.js:7283:7)
at patch (vue.runtime.esm-browser.js:6801:11)
at patchBlockChildren (vue.runtime.esm-browser.js:7155:7)
at processFragment (vue.runtime.esm-browser.js:7233:9)
at patch (vue.runtime.esm-browser.js:6775:9)
at ReactiveEffect.componentUpdateFn [as fn] (vue.runtime.esm-browser.js:7496:9)
at ReactiveEffect.run (vue.runtime.esm-browser.js:525:19)
at ReactiveEffect.runIfDirty (vue.runtime.esm-browser.js:563:12)
System Info
System:
OS: Windows 11 10.0.26100
CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
Memory: 9.61 GB / 31.84 GB
Binaries:
Node: 16.20.2 - C:\nvm4w\nodejs\node.EXE
Yarn: 1.22.22 - C:\nvm4w\nodejs\yarn.CMD
npm: 8.19.4 - C:\nvm4w\nodejs\npm.CMD
pnpm: 8.15.9 - C:\nvm4w\nodejs\pnpm.CMD
Browsers:
Edge: Chromium (131.0.2903.112)Any additional comments?
I think it may be because the VNode is created at an uncertain time and the blocktree mechanism cannot track it correctly.
Is there a way to solve this error? Or is there an API that can bypass the blocktree mechanism to create a Vnode?