收藏
回答

小程序真机调试 报错

框架类型 问题类型 操作系统 工具版本
小程序 Bug Windows Stable V1.02.1904090

- 当前 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 个回答

登录 后发表内容