真机调试报错
发布于 4 年前 作者 xiulan01 9184 次浏览 来自 问答

开发工具版本:1.02.1905151

真机调试出现了这个报错,虽然不影响使用…

remote-helper.js:1 error run publib TypeError: Cannot assign to read only property 'console' of object '#<Object>'
    at handleInitPubLib (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:1:13129)
    at handleSetupContext (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:44:131)
    at handleProcessMessage (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:44:2564)
    at WebSocket.ws.on (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\js\unpack\remote-helper.js:44:6348)
    at WebSocket.emit (events.js:193:13)
    at Receiver._receiver.onmessage (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\node_modules.wxvpkg\ws\lib\WebSocket.js:146:47)
    at Receiver.dataMessage (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\node_modules.wxvpkg\ws\lib\Receiver.js:389:14)
    at Receiver.getData (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\node_modules.wxvpkg\ws\lib\Receiver.js:330:12)
    at Receiver.startLoop (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\node_modules.wxvpkg\ws\lib\Receiver.js:165:16)
    at Receiver.add (C:\Users\pro\AppData\Roaming\Tencent\微信开发者工具\package.nw\node_modules.wxvpkg\ws\lib\Receiver.js:139:10)

大概翻了一下,报错是从这里地console.error开始的(remote-helper.js:1)

Object.defineProperty(log, "e", {
value: function(...a) {
    console.error(...a), errorsAndWarns.push([...a]), sendLogTimer || (sendLogTimer = setTimeout(() => {
        sendLogTimer = void 0;
        const a = {
            type: "error",
            data: {
                error: errorsAndWarns.join("\n")
            }
        };
        errorsAndWarns = [], sendMessageToMaster(a)
    }, 0))
}
10 回复

上午还好好的~ 下午就出现这个bug~

不知道什么原因~ 烦呐~ 烦呐~

突然就出现问题了。

到今天依然没有解决?你们出现这个错不影响使用吗?我的苹果直接打不来了。安卓没问题

报个到,站个队…

在手机上打开调试模式正常。

关闭调试模式就白屏报错了。

官方团队自己不用真机调试?

报道这个错误

最近问题好多呀,很浪费时间

遇到同样的问题,等待官方回应。。。

解决了 没 我也出现这个问题了

有解决办法吗?今天突然出现这情况 版本回退也无法解决

回到顶部