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
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