可能依赖没下载完,你把node_module模块删掉,重新下载依赖
https://ask.csdn.net/questions/7759461?locationNum=5
因为不了解你具体使用场景吗,大概原因就是 this 指向问题,可以试一下