Open
Description
Version
1.0.0-beta.29
Steps to reproduce
What is expected?
What is actually happening?
Unfortunately i've not been able to find a minimal reproduction setup.
But for some reason, vm
is undefined when errorHandler is called (https://github.com/vuejs/vue-test-utils/blob/dev/packages/test-utils/src/error.js#L4)
Resuling in a type error when doing vm._error
. This is pretty bad because the "real" error is then lost making the app impossible to debug.
Here is the stack trace:
TypeError: Cannot set property '_error' of undefined
at errorHandler (/home/john/Documents/Scalingo/dashboard-vue/dist/webpack:/node_modules/@vue/test-utils/dist/vue-test-utils.js:3152:1)
at globalHandleError (/home/john/Documents/Scalingo/dashboard-vue/dist/webpack:/node_modules/vue/dist/vue.runtime.esm.js:1723:1)
at handleError (/home/john/Documents/Scalingo/dashboard-vue/dist/webpack:/node_modules/vue/dist/vue.runtime.esm.js:1717:1)
at Array.<anonymous> (/home/john/Documents/Scalingo/dashboard-vue/dist/webpack:/node_modules/vue/dist/vue.runtime.esm.js:1835:1)
at flushCallbacks (/home/john/Documents/Scalingo/dashboard-vue/dist/webpack:/node_modules/vue/dist/vue.runtime.esm.js:1754:1)
I think that a check on vm
should be sufficient to at least not hide the real error.