nullptr
nullptr
  • 发布:2025-02-13 13:59
  • 更新:2025-02-18 15:02
  • 阅读:87

运行到小程序报错 stat.error is not a function,h5上正常

分类:uni-app

运行到小程序报错 stat.error is not a function,web 上正常运行不报错,
HBuilderX 版本 4.45
微信小程序开发工具版本 1.06.2412050

下面是小程序运行日志回显
13:51:47.126 TypeError: stat.error is not a function
13:51:47.126 at Proxy.onError (http://127.0.0.1:51180/appservice/common/vendor.js:181:2792)
13:51:47.126 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3478)
13:51:47.126 at callWithAsyncErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3654)
13:51:47.126 at Array.hook.weh.hook.weh (http://127.0.0.1:51180/appservice/common/vendor.js:41:3045)
13:51:47.127 at invokeArrayFns (http://127.0.0.1:51180/appservice/common/vendor.js:8:12221)
13:51:47.127 at Proxy.callHook (http://127.0.0.1:51180/appservice/common/vendor.js:94:7938)
13:51:47.127 at errorHandler (http://127.0.0.1:51180/appservice/common/vendor.js:85:3635)
13:51:47.127 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3478)
13:51:47.127 at handleError (http://127.0.0.1:51180/appservice/common/vendor.js:24:4486)
13:51:47.127 TypeError: stat.error is not a function
13:51:47.127 at Proxy.onError (http://127.0.0.1:51180/appservice/common/vendor.js:181:2792)
13:51:47.127 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3478)
13:51:47.127 at callWithAsyncErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3654)
13:51:47.127 at Array.hook.weh.hook.weh (http://127.0.0.1:51180/appservice/common/vendor.js:41:3045)
13:51:47.127 at invokeArrayFns (http://127.0.0.1:51180/appservice/common/vendor.js:8:12221)
13:51:47.127 at Proxy.callHook (http://127.0.0.1:51180/appservice/common/vendor.js:94:7938)
13:51:47.128 at kt.mpOptions.<computed> (http://127.0.0.1:51180/appservice/common/vendor.js:98:622)
13:51:47.128 at kt.<anonymous> (http://127.0.0.1:51180/appservice/dev/WASubContext.js?t=wechat&s=1739425718379&v=3.7.7:1:447628)
13:51:47.128 at p (http://127.0.0.1:51180/appservice/dev/WAServiceMainContext.js?t=wechat&s=1739425718379&v=3.7.7:1:153291)
13:51:47.128 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3535)
13:51:47.128 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3535)
13:51:47.128 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3535)
13:51:47.128 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3535)
13:51:47.128 at callWithErrorHandling (http://127.0.0.1:51180/appservice/common/vendor.js:24:3535)

2025-02-13 13:59 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

你好,可以提供一下一个可以复现的项目吗?

  • nullptr (作者)

    创建新项目正常,甚至同样代码 git 另一个电脑 pull 下来也正常

    2025-02-13 18:17

冰雨1314

冰雨1314

请问有解决,我跟你使用相同的版本,同样报错

新建一个 uni-starter 项目,即可复现

  • nullptr (作者)

    后来莫名其妙好了,不知道是不是更新版本的原因

    2025-05-12 16:57

要回复问题请先登录注册