The error message is as follows
[Vue warn]: Error in v-on handler (Promise/async): "Error: Error"
found in
---> <Navbar> at src/layout/components/Navbar.vue
<Layout> at src/layout/index.vue
<App> at src/App.vue
<Root>
The solution is as follows
1. F12 enter the developer mode and click the area in the box
2. Check the response code, which is the value on the right side of res.code
3. Add code to easy mock
Read More:
- [Solved] Vue Error: Error in v-on handler (Promise/async): “[object object]“
- How to solve Uncaught (in promise) error in VUE?
- JS async await Error: Uncaught SyntaxError: await is only valid in async functions and the top level bodies of modules
- [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
- Vue form validate error: Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘indexOf‘)
- How to Solve Uncaught (in promise) Error (Two Solutions)
- [Solved] Uncaught (in promise) TypeError: XXX.a is not a constructor
- [Vue warn]: Error in v-on handler: “TypeError: Object(…) is not a function“
- Uncaught (in promise) NavigationDuplicated: Avoided redundant navigation to crrent location: “/home“
- Module not found: Error: Can‘t resolve ‘core-js/modules/es.promise.js‘ in
- [Solved] Error in v-on handler: “Error: please transfer a valid prop path to form item
- [Solved] Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘resetFields‘)“
- VueUncaught (in promise) NavigationDuplicated: Avoided redundant navigation to current location: “/
- [Solved] Uncaught (in promise) Error: Avoided redundant navigation to current location:
- [Solved] Turf.js error: uncaught (in promise) error: the solution of invalid unit
- [Solved] Uncaught (in promise) DOMException: Failed to load because no supported source was found.
- JS native implementation Promise.all
- [Solved] Error in event handler for “el.form.blur“: “RangeError: Maximum call stack size exceeded“
- ArcGIS API for JavaScript Error Uncaught(in promise): TypeError: xxx is not a constructor