- 当前 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)