navigation-bar icon indicating copy to clipboard operation
navigation-bar copied to clipboard

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

Open Gaoyongxian666 opened this issue 4 years ago • 10 comments

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)

Gaoyongxian666 avatar Apr 22 '20 03:04 Gaoyongxian666

是不是分包问题

lingxiaoyi avatar Apr 22 '20 03:04 lingxiaoyi

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

Gaoyongxian666 avatar Apr 22 '20 03:04 Gaoyongxian666

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

Gaoyongxian666 avatar Apr 22 '20 03:04 Gaoyongxian666

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

Gaoyongxian666 avatar Apr 22 '20 03:04 Gaoyongxian666

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

lingxiaoyi avatar Apr 22 '20 03:04 lingxiaoyi

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

Gaoyongxian666 avatar Apr 22 '20 03:04 Gaoyongxian666

2020-04-22_115533

Gaoyongxian666 avatar Apr 22 '20 03:04 Gaoyongxian666

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

lingxiaoyi avatar Apr 22 '20 04:04 lingxiaoyi

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

Gaoyongxian666 avatar Apr 22 '20 04:04 Gaoyongxian666

问题已解决 ,多谢反馈

lingxiaoyi avatar Apr 22 '20 05:04 lingxiaoyi