收藏
回答

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.<anonymous> ([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)


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

3 个回答

  • 佑&文
    佑&文
    10-12

    我在小程序开发插件,真机调试也是这样

    10-12
    有用
    回复
  • 疯狂的小辣椒
    疯狂的小辣椒
    2019-03-14

    你好,这是个已知问题,我们会在后续版本修复,感谢反馈

    2019-03-14
    有用
    回复 9
    查看更多(4)
  • 可樂加冰คิดถึงเธอ
    可樂加冰คิดถึงเธอ
    2019-03-14

    第一次出现是在iPhoneX上面,原本以为是兼容没做好的问题。后来iPhoneX能用了,iPhone6s Plus不能用了。

    2019-03-14
    有用
    回复
登录 后发表内容