[Solved] Vue Error: Error in v-on handler (Promise/async): “[object object]“
Solution:
Use try_ catch package async… await function
/**
* export
*/
async download () { // export
try {
const { parkName } = this.formInline
const res:any = await exportInvoice({ parkName })
this.downSteam(res)
} catch (_) {}
}
Read More:
- Vue Error: Error in v-on handler (Promise/async): “Error: Error“
- JS async await Error: Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
- How to solve Uncaught (in promise) error in VUE?
- [Solved] vue.esm.js?efeb:591 [Vue warn]: Error in event handler for “click“: “TypeError: Cannot read property
- Vue Error: Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location
- How to Solve Uncaught (in promise) Error (Two Solutions)
- Vue form validate error: Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘indexOf‘)
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- VueUncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/
- [Solved] Uncaught (in promise) Error: Avoided redundant navigation to current location:
- [Vue warn]: Error in v-on handler: “TypeError: Object(…) is not a function“
- JS native implementation Promise.all
- [Solved] Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘resetFields‘)“
- [Solved] Error in v-on handler: “Error: please transfer a valid prop path to form item
- Module not found: Error: Can‘t resolve ‘core-js/modules/es.promise.js‘ in
- [Solved] IE Browser Error: unhandled promise rejection error: access is denied. File stream Download
- [Solved] Uncaught (in promise) TypeError: XXX.a is not a constructor
- [Solved] Turf.js error: uncaught (in promise) error: the solution of invalid unit
- [Solved] Echarts Error: Uncaught (in promise) Error: Initialize failed: invalid dom.
- [Solved] Error in event handler for “el.form.blur“: “RangeError: Maximum call stack size exceeded“