-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
Vue.config.errorHandler
can not catch error throw in data function
#5198
Comments
Vue.config.errorHandler
can not error throw in data functionVue.config.errorHandler
can not catch error throw in data function
Is my question too easy? |
imo errors in data should be handled too because errors in computed are already handled @githoniel I find throwing errors in |
* 'dev' of https://github.com/vuejs/vue: remove env vars from npm scripts also catch error in data() (close vuejs#5198) always use uid when calling performance.mark (fix vuejs#5209)
Apologize in advance for the hijacking, but I'm really too lazy to open a new issue... Seems errors in directives are not caught: https://jsfiddle.net/gL3f27eg/4/ |
This comment on a closed issue will likely be drowned in the stream of notifications, so don't expect this issue to be fixed. |
Vue.js version
2.2.4
Reproduction Link
https://jsfiddle.net/githoniel/gL3f27eg/
Steps to reproduce
throw error in data function
What is Expected?
Vue.config.errorHandler can catch it
What is actually happening?
Vue.config.errorHandler can not catch it
The text was updated successfully, but these errors were encountered: