收藏
回答

本地编译能显示不能调试报错?

VM33:2 thirdScriptError

Cannot read property 'errno' of undefined;at api request complete callback function

TypeError: Cannot read property 'errno' of undefined

    at Object.complete (weapp:///zofui_sitetemp/resource/js/com.js:33:34)

    at eval (weapp:///we7/resource/js/util.js:117:60)

    at Function.o.complete (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:1432214)

    at eval (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:127400)

    at E (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:541044)

    at i.eval (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:920471)

    at i.emit (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:599149)

    at ic (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:921195)

    at eval (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:922474)

    at eval (eval at n.call.document (http://127.0.0.1:52109/remote-debug/runtime.js?devtools_ignore=true:1:8753), <anonymous>:2:584122)


js代码




回答关注问题邀请回答
收藏

2 个回答

  • 游戏人生
    游戏人生
    2020-04-12

    搜索下 app.js里 errno 是不是没有定义?

    2020-04-12
    有用
    回复 4
    • 易优
      易优
      2020-04-13
      App({
          onLaunch: function() {},
          onShow: function() {},
          onHide: function() {},
          onError: function(e) {
              console.log(e);
          },
          util: require("we7/resource/js/util.js"),
          com: require("zofui_sitetemp/resource/js/com.js"),
          zan: require("zofui_sitetemp/resource/zan-ui/index.js"),
          globalData: {
              userInfo: null
          },
          siteInfo: require("siteinfo.js")
      });
      2020-04-13
      回复
    • 游戏人生
      游戏人生
      2020-04-13回复易优
      我看你调用的是第三方的插件/框架,众惠和有赞? 第三方的排查起来你得一个个单步调试了
      2020-04-13
      回复
    • 易优
      易优
      2020-04-13
      调用的谁微擎框架
      2020-04-13
      回复
    • 易优
      易优
      2020-04-13
      在本地编译是没问题,上传或者调试就没显示
      2020-04-13
      回复
  • 易优
    易优
    2020-04-12

    2020-04-12
    有用
    回复
登录 后发表内容
问题标签