2.5.2
https://codesandbox.io/s/k9rlpoojpr
Click on throw error button in reproduction link
This should display an alert with error object, handled by errorCaptured hook defined in App.vue component.
The errorCaptured hook is not invoked
It seems that typings in options.d.ts is not the same as specified in the docs too.
https://github.com/vuejs/vue/blob/96472be6f62a98d3b5d6b784fe341a71ba3a68eb/types/options.d.ts#L83
https://vuejs.org/v2/api/#errorCaptured
We currently only capture errors in the following:
DOM event handlers are currently not included and probably should.
What’s the status?
Are there any plans to fix this?
Closed via #8395 (will be out 2.6)
Most helpful comment
We currently only capture errors in the following:
DOM event handlers are currently not included and probably should.