小程序真机调试 报错
发布于 5 年前 作者 etao 786 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现
  • 复现路径
  • 提供一个最简复现 Demo

新建一个小程序 使用调试模式打开

报错

[publib]:834 ReferenceError: define is not defined

    at util.js:1

    at ContextifyScript.Script.runInContext (vm.js:59)

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:828)

    at handleInitUserCode ([publib]:812)

    at handleSetupContext ([publib]:1225)

    at handleProcessMessage ([publib]:1234)

    at WebSocket.ws.on ([publib]:1462)

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)

loadCode @ [publib]:834

[publib]:834 ReferenceError: define is not defined

    at app.js:1

    at ContextifyScript.Script.runInContext (vm.js:59)

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:828)

    at handleInitUserCode ([publib]:812)

    at handleSetupContext ([publib]:1225)

    at handleProcessMessage ([publib]:1234)

    at WebSocket.ws.on ([publib]:1462)

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)

loadCode @ [publib]:834

[publib]:834 ReferenceError: define is not defined

    at index.js:1

    at ContextifyScript.Script.runInContext (vm.js:59)

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:828)

    at handleInitUserCode ([publib]:812)

    at handleSetupContext ([publib]:1225)

    at handleProcessMessage ([publib]:1234)

    at WebSocket.ws.on ([publib]:1462)

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)

loadCode @ [publib]:834

[publib]:834 ReferenceError: define is not defined

    at logs.js:1

    at ContextifyScript.Script.runInContext (vm.js:59)

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:828)

    at handleInitUserCode ([publib]:812)

    at handleSetupContext ([publib]:1225)

    at handleProcessMessage ([publib]:1234)

    at WebSocket.ws.on ([publib]:1462)

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)

3 回复

希望你学会这个方法,提问之前先自己尝试寻找解决方案

回到顶部