-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Closed
Description
Version
3.0.11
Reproduction link
https://codepen.io/faxin/pen/NWdaRoZ
Steps to reproduce
in the given codepen( https://codepen.io/faxin/pen/NWdaRoZ ):
- ctrl shift I open the browser devtool console tab.
- click the 'x' in one of the tabs in the UI of sandbox.
you will see the reported errror in the console tab of browser devtools.
In my real project, the full warning and error message is as follow:
runtime-core.esm-bundler.js?9e79:38 [Vue warn]:
Unhandled error during execution of ref function
[Vue warn]: Unhandled error during execution of scheduler flush.
This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue-next
Index.vue?8b24:43 Uncaught (in promise) TypeError:
Cannot set property 'tab' of undefined
at ref (Index.vue?8b24:43)
at callWithErrorHandling (runtime-core.esm-bundler.js?9e79:154)
at setRef (runtime-core.esm-bundler.js?9e79:3712)
at unmount (runtime-core.esm-bundler.js?9e79:4724)
at patchKeyedChildren (runtime-core.esm-bundler.js?9e79:4558)
at patchChildren (runtime-core.esm-bundler.js?9e79:4425)
at processFragment (runtime-core.esm-bundler.js?9e79:4171)
at patch (runtime-core.esm-bundler.js?9e79:3784)
at patchKeyedChildren (runtime-core.esm-bundler.js?9e79:4506)
at patchChildren (runtime-core.esm-bundler.js?9e79:4449)
runtime-core.esm-bundler.js?9e79:1041 Uncaught (in promise) TypeError:
Cannot read property 'emitsOptions' of null
at shouldUpdateComponent (runtime-core.esm-bundler.js?9e79:1041)
at updateComponent (runtime-core.esm-bundler.js?9e79:4230)
at processComponent (runtime-core.esm-bundler.js?9e79:4186)
at patch (runtime-core.esm-bundler.js?9e79:3791)
at patchKeyedChildren (runtime-core.esm-bundler.js?9e79:4506)
at patchChildren (runtime-core.esm-bundler.js?9e79:4449)
at patchElement (runtime-core.esm-bundler.js?9e79:4062)
at processElement (runtime-core.esm-bundler.js?9e79:3871)
at patch (runtime-core.esm-bundler.js?9e79:3788)
at componentEffect (runtime-core.esm-bundler.js?9e79:4368)
What is expected?
the :ref="tab => tabs[idx].tab = tab"
works correctly.
What is actually happening?
the tabs[idx]
is undefined.
I don't know if it is really a bug, but the warning message says that it is likely a Vue internals bug, so I issued it here.
Metadata
Metadata
Assignees
Labels
No labels