Cannot read property '__wxWebviewId__
HONOR KNT-AL10
Android 6.0
目前不知如何复现,小程序正常使用情况下,有机率发生如下错误:
appServiceSDKScriptError TypeError: Cannot read property '__wxWebviewId__' of undefined; at wx.createSelectorQuery X5JsCore:48:14266 Function.i X5JsCore:43:7757 Object.createSelectorQuery X5JsCore:3031:842 Function.e X5JsCore:42:13773 X5JsCore:47:7186 |
疑似发生在内核
function (e, t, n) { Object.defineProperty(t, "__esModule" , { value: !0 }), t.createSelectorQuery = void 0; var r = n(163), o = function (e) { return e && e.__esModule ? e : { default : e } }(r), i = function (e) { var t = null ; if (e && e.page) t = e.page.__wxWebviewId__; else { var n = getCurrentPages(); t = n[n.length - 1].__wxWebviewId__ } return new o. default (t) }; t.createSelectorQuery = i } |
请问什麽情况下会发生,要如何避免这个错误,谢谢