Solve Uncaught (in promise) TypeError: Object(...) is not a function error

I encountered an error while moving bricks today.

问题:
Uncaught (in promise) TypeError: Object(…) is not a function
如图所示
Insert image description here

Reason:
After investigation, it was found that the reason was that the imported JS method was not received with curly brackets, and then it was called as a method. Low-level error

Solution:
The imported js method must be received with braces:

import {
    
    callMethodLimitPage} from './getAllData.js'

Guess you like

Origin blog.csdn.net/weixin_44582045/article/details/124479047