After checking, it is found that the reason is that the imported JS method is not received with braces, and then it is called as a method.
The imported JS method should be received with braces
import {shopsratings} from '../../request/api.js
Read More:
- About iView reporting error in Vue project: error in mounted hook: “typeerror: this$ parent.updateNav is not a function”
- Uncaught (in promise) TypeError: Object(…) is not a function
- Error in mounted hook: “TypeError: Cannot read property ‘init‘ of undefined“
- Vue Error in v-on handler: “TypeError: path.indexOf is not a function“
- TypeError: this.getOptions is not a function at Object.lessLoader
- Python error prompt: typeerror: ‘builtin’_ function_ or_ method‘ object is not subscriptable
- Vue — report error with less module build failed: typeerror: loaderContext.getResolve is not a function
- Typeerror in gitbook init: cb.apply is not a function solution
- Python error: typeerror: ‘module’ object is not callable
- Typeerror in Python: ‘nonetype’ object is not Iterable
- Typeerror: ‘module’ object is not callable
- TypeError: ‘numpy.int64′ object is not iterable ,’int’ object is not iterable
- TypeError: connection.connect is not a function
- Python custom class typeerror: ‘module’ object is not callable
- JS error – typeerror: XXX is not a function
- Syntax error: typeerror: this.getoptions is not a function an error is reported when the. SCSS file is imported globally
- TypeError: ‘int’ object is not iterable
- [Solved] jQuery Error: Uncaught TypeError: this.attr is not a function
- [Solved] Error handling response: TypeError: self.processResponse is not a function
- TypeError: this.getOptions is not a function