Next component's `setup` throw an error, turn back and last component crashed as well
Version
3.0.7
Reproduction link
https://cdpn.io/wzhzzmzzy/debug/poNZOMM/PNkvYXXQLgYA#/
Steps to reproduce
- Open chrome dev console
- Click "About" link
- Click "Home" link
What is expected?
At last, <Home />
component should be rendered successfully.
What is actually happening?
<Home />
component missed, and there's an error:
TypeError: Cannot read property 'parentNode' of null
[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
How should I catch and handle errors throw by setup
function appropriately?
Provide the editable codepen please: https://codepen.io/jh3y/pen/PoGbxLp
sorry, here is it. https://codepen.io/wzhzzmzzy/pen/poNZOMM
I think this is intended in DEV,if errorCapturedHooks or appErrorHandler is not configured.
and the update()
of component still in the queue
.