真机调试报错
开发工具版本: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))[代码][代码]}[代码]