收藏
回答

error run publib TypeError: 无法调试

框架类型 问题类型 操作系统 工具版本
小程序 Bug macOS 1.02.1902010


- 当前 Bug 的表现(可附上截图)


- 预期表现

扫一扫正常启动程序,并进入调试模式。


- 复现路径


- 提供一个最简复现 Demo


error run publib TypeError: Cannot read property 'toLowerCase' of undefined

    at a.g ([publib]:1)

    at new a ([publib]:1)

    at [publib]:1

    at Object.u [as onReady] ([publib]:1)

    at Object. ([publib]:1)

    at o ([publib]:1)

    at i ([publib]:1)

    at __waServiceInit__ ([publib]:1)

    at __doWAServiceInit__ ([publib]:1)

    at [publib]:1

value @ [publib]:146

[publib]:833 ReferenceError: define is not defined

    at weapp:///Command/Command.js:1

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

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:827)

    at handleInitUserCode ([publib]:811)

    at handleSetupContext ([publib]:1221)

    at handleProcessMessage ([publib]:1230)

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

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)

loadCode @ [publib]:833

[publib]:833 ReferenceError: define is not defined

    at weapp:///ec-canvas/echarts.js:1

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

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:827)

    at handleInitUserCode ([publib]:811)

    at handleSetupContext ([publib]:1221)

    at handleProcessMessage ([publib]:1230)

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

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)

loadCode @ [publib]:833

[publib]:833 ReferenceError: define is not defined

    at weapp:///ec-canvas/wx-canvas.js:1

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

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:827)

    at handleInitUserCode ([publib]:811)

    at handleSetupContext ([publib]:1221)

    at handleProcessMessage ([publib]:1230)

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

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)

loadCode @ [publib]:833

[publib]:833 ReferenceError: define is not defined

    at weapp:///libs/qqmap-wx-jssdk.js:1

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

    at Object.runInContext (vm.js:120)

    at loadCode ([publib]:827)

    at handleInitUserCode ([publib]:811)

    at handleSetupContext ([publib]:1221)

    at handleProcessMessage ([publib]:1230)

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

    at emitOne (events.js:115)

    at WebSocket.emit (events.js:210)


回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容