The record appears in Vue
[Vue warn]: error in v-on handler: "typeerror: object (...) is not a function"
when referencing an external file, it is only partially referenced, so it was originally referenced in a deconstruction mode. I forgot to add
{}
// Wrong
import loginAPI from '@/api'
// Right
import { loginAPI } from '@/api'
Read More:
- [Solved] Module build failed TypeError this.getOptions is not a function at Object.loader
- [Web Browser] “Uncaught TypeError: object is not a function“
- [Solved] Vue3.2 Error: Object.fromEntries is not a function
- [Solved] Less Install Error: TypeError: this.getOptions is not a function
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Syntax Error: TypeError: this.getOptions is not a function
- [Solved] Echart Error: Typeerror: axis Getaxesonzeroof is not a function
- [Solved] node-xlsx Write excel Error: TypeError: n.indexOf is not a function
- [Solved] webpack Package Error: TypeError: this.getOptions is not a function style-loader
- TypeError: r.indexOf is not a function TypeError: r.indexOf is not a function
- [Solved] Element Error: Error in render: TypeError: dateStr.match is not a function“
- [Solved] vue.esm.js?efeb:591 [Vue warn]: Error in event handler for “click“: “TypeError: Cannot read property
- [Solved] uni app TypeError: undefined is not an object (evaluating ‘modules[moduleId].call‘) __ERROR
- [Solved] scss Error: TypeError: this.getOptions is not a function
- [Solved] Vue Route Error: Uncaught TypeError: (0 , vue__WEBPACK_IMPORTED_MODULE_42__.defineComponent) is not a function
- [Solved] electron-vue project error: Object.fromEntries is not a function electron-vue
- [Solved] Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘resetFields‘)“
- [Solved] Vue Error: Uncaught TypeError: Vue.createApp is not a function
- Vue form validate error: Error in v-on handler “TypeError Cannot read properties of undefined (reading ‘indexOf‘)
- [Solved] Vue Project Error: Syntax Error: TypeError: this.getOptions is not a function