lingxiaoyi / navigation-bar

微信小程序自定义导航栏组件,navigation,完美适配全部手机
MIT License
763 stars 140 forks source link

this._getApp is not a function; [Component] Lifetime Method Error @ components/navBar/navBar#created TypeError: this._getApp is not a function #25

Open Gaoyongxian666 opened 4 years ago

Gaoyongxian666 commented 4 years ago

thirdScriptError this._getApp is not a function; [Component] Lifetime Method Error @ components/navBar/navBar#created TypeError: this._getApp is not a function at ye.getSystemInfo (http://127.0.0.1:63328/appservice/components/navBar/navBar.js:146:22) at ye.created (http://127.0.0.1:63328/appservice/components/navBar/navBar.js:70:10) at r.safeCallback (WAService.js:1:1037423) at r.call (WAService.js:1:1037316) at Function.x._advancedCreate (WAService.js:1:1136263) at r.createComponent (WAService.js:1:1146424) at e (WAService.js:1:1179207) at e (WAService.js:1:1180502) at e.value (WAService.js:1:1204216) at x._advancedCreate (WAService.js:1:1134731)

lingxiaoyi commented 4 years ago

是不是分包问题

Gaoyongxian666 commented 4 years ago

我没有分包,就是按照你给的实例做的:1.引入组件2.示例代码

Gaoyongxian666 commented 4 years ago

感觉方法定义的位置有问题

Gaoyongxian666 commented 4 years ago

我直接用你git上的代码也是同样的问题

lingxiaoyi commented 4 years ago

你导入demo也不行吗?别人用的好好的啊

Gaoyongxian666 commented 4 years ago

是的,我就是直接导入你github上的demo,不行,一样的错误

Gaoyongxian666 commented 4 years ago

2020-04-22_115533

lingxiaoyi commented 4 years ago

image 你用下这个版本代码 我下午验证下这个最新版代码

Gaoyongxian666 commented 4 years ago

好的,你指定的这个版本可以正常使用

lingxiaoyi commented 4 years ago

问题已解决 ,多谢反馈