真机调试报错
开发工具版本: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 回复