请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

安装lin-ui产生两个错误

图片描述
错误一:
VM263:1 页面【miniprogram_npm/lin-ui/capsule-bar/index]错误:
TypeError: wx.getMenuButtonBoundingClientRect is not a function
at DeviceUtil.getTitleBarHeight (device-util.js:1)
at index.js:1
at require (VM24 WAService.js:19)
at :309:9
at doWhenAllScriptLoaded (instanceframe?s=1599182518030:5959)
at HTMLScriptElement.scriptLoaded (instanceframe?s=1599182518030:5979)
at HTMLScriptElement.script.onload (instanceframe?s=1599182518030:5987)

错误二:
VM407:313 Uncaught TypeError: wx.getMenuButtonBoundingClientRect is not a function
at DeviceUtil.getTitleBarHeight (device-util.js:1)
at index.js:1
at require (VM24 WAService.js:19)
at :309:9
at doWhenAllScriptLoaded (instanceframe?s=1599182518030:5959)
at HTMLScriptElement.scriptLoaded (instanceframe?s=1599182518030:5979)
at HTMLScriptElement.script.onload (instanceframe?s=1599182518030:5987)
getTitleBarHeight @ device-util.js:1
(anonymous) @ index.js:1
require @ VM268 WAService.js:19
(anonymous) @ VM407:309
doWhenAllScriptLoaded @ instanceframe?s=1599182518030:5959
scriptLoaded @ instanceframe?s=1599182518030:5979
script.onload @ instanceframe?s=1599182518030:5987
load (async)
(anonymous) @ instanceframe?s=1599182518030:5986
(anonymous) @ instanceframe?s=1599182518030:5997

正在回答 回答被采纳积分+3

1回答

7七月 2020-09-04 13:53:37
  1. 更新小程序开发工具版本

  2. 尝试将小程序基础版本库设置高一些

0 回复 有任何疑惑可以回复我~
  • 七月老师,基本版本库在哪里设置?我只找到了调试基础库
    回复 有任何疑惑可以回复我~ 2020-09-28 10:24:04
  • 7七月 回复 承苏凯 #2
    就是调试基础库
    回复 有任何疑惑可以回复我~ 2020-09-29 00:30:02
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信