when creating the route of vue3, an error is reported: cannot use 'in' operator to search for 'path' in undefined
. After many troubleshooting, it is found that I used the createwebhashhistory()
method incorrectly in the route file and used it as a variable.
1. Error reporting
2. Causes and solutions of error reporting
this error is reported because I mistakenly used the createwebhashhistory()
method in the routing file and used it as a variable. I just need to write it as a method to solve the problem.
hope to help you!!!
Read More:
- [Solved] vue watch Error: Error in callback for watcher “xxx“: “TypeError: Cannot read properties of undefined …
- Use of $watch in Vue (solve rangeerror: maximum call stack size exceeded)
- [Solved] VUE Error: Error in mounted hook: “TypeError: Cannot read properties of undefined (reading ‘$on‘)“
- How to solve Uncaught (in promise) error in VUE?
- Vue form validate error: Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘indexOf‘)
- Vue2.0: How to Use vue3 api to encapsulate Axios
- After Vue is packaged to the server, the static resource path reports an error
- [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string. Received undefined error
- [Solved] Vue element UI form verification error: cannot read property ‘validate’ of undefined
- Solution to build error in Vue project (error in static/JS)/vendor.xxxxx.js from UglifyJs)
- Vue3.0 Use el-dialog visible Error: ‘.sync‘ modifier on ‘v-bind‘ directive is deprecated. Use ‘v-model:pro
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- Vue cannot read property ‘xxx’ of undefined solutions
- Solve the problem of repeatedly clicking the same route console in Vue to report an error
- [Solved] Vue Project Error: “TypeError: Cannot read properties of undefined (reading ‘init‘)“
- [Vue warn]Error in mounted hook: “Error: please transfer a valid prop path to form item“
- [Solved] Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘resetFields‘)“
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- [Solved] Error in nextTick: “TypeError: undefined is not iterable
- [Solved] Vue Error: TypeError: Cannot read property ‘end‘ of undefined