收藏
回答

开发工具运行正常,真机调试报错?

代码没有改,前2次用真机调试没有问题,再用真机调试就报错了

runtime.js:1 ReferenceError: define is not defined

    at eval (weapp:///@babel/runtime/helpers/interopRequireDefault.js:1)

    at eval (<anonymous>)

    at pe (runtime.js:1)

    at runtime.js:1

    at fe (runtime.js:1)

    at Te (runtime.js:1)

    at Ae (runtime.js:1)

    at WebSocket.He.Ue.onmessage (runtime.js:1)


VM13:2 SystemError (appServiceSDKScriptError)

Cannot read property 'checkTapMark' of undefined

TypeError: Cannot read property 'checkTapMark' of undefined

    at zr (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:929512)

    at Object.eval (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:929588)

    at Object.eval (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:2354534)

    at Object.eval (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:2352498)

    at < at wx.getNetworkType>

    at Object.eval (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:118086)

    at eval (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:806344)

    at r.eval (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:806554)

    at <setTimeout callback function>

    at eval (eval at Te.n.call.document (http://127.0.0.1:38847/remote-debug/runtime.js?devtools_ignore=true:1:15025), <anonymous>:2:118761)

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

3 个回答

  • Demons
    Demons
    2022-02-24

    切换成2.22.0的基础库,真机可以先在工具上选择2.22.0基础库后点击“推送”到真机,或则切换真机2.0

    2022-02-24
    有用
    回复 1
  • 忘羡
    忘羡
    2022-02-24

    切换到真机调试2.0就没事了,或者重新安装开发者工具

    2022-02-24
    有用
    回复
  • 尘桁
    尘桁
    2022-02-24

    一样一样

    2022-02-24
    有用
    回复
登录 后发表内容