-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
errorCaptured and errorHandler should capture errors in v-on handlers #6953
Labels
Comments
We currently only capture errors in the following:
DOM event handlers are currently not included and probably should. |
yyx990803
changed the title
errorCaptured hook doesn't work
errorCaptured and errorHandler should capture errors in v-on handlers
Oct 30, 2017
What’s the status? |
Merged
13 tasks
enkot
added a commit
to enkot/vue
that referenced
this issue
Jun 30, 2018
Add handling for v-on normal+async errors (vuejs#6953)
Are there any plans to fix this? |
Closed via #8395 (will be out 2.6) |
f2009
pushed a commit
to f2009/vue
that referenced
this issue
Jan 25, 2019
…handlers (vuejs#8395) close vuejs#6953, close vuejs#7653
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.5.2
Reproduction link
https://codesandbox.io/s/k9rlpoojpr
Steps to reproduce
Click on throw error button in reproduction link
What is expected?
This should display an alert with error object, handled by errorCaptured hook defined in App.vue component.
What is actually happening?
The errorCaptured hook is not invoked
It seems that typings in options.d.ts is not the same as specified in the docs too.
vue/types/options.d.ts
Line 83 in 96472be
https://vuejs.org/v2/api/#errorCaptured
The text was updated successfully, but these errors were encountered: