- 当前 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)
已解决
请参考:https://developers.weixin.qq.com/community/develop/doc/000cca451006984364d8a94c351808
诶?看见了,但是你发的链接是这个耶:https://developers.weixin.qq.com/community/develop/mixflow
希望你学会这个方法,提问之前先自己尝试寻找解决方案