Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Apr 22, 2020 · 10 comments

Comments

@Gaoyongxian666
Copy link

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
Copy link
Owner

是不是分包问题

@Gaoyongxian666
Copy link
Author

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

@Gaoyongxian666
Copy link
Author

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

@Gaoyongxian666
Copy link
Author

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

@lingxiaoyi
Copy link
Owner

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

@Gaoyongxian666
Copy link
Author

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

@Gaoyongxian666
Copy link
Author

2020-04-22_115533

@lingxiaoyi
Copy link
Owner

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

@Gaoyongxian666
Copy link
Author

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

@lingxiaoyi
Copy link
Owner

问题已解决 ,多谢反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants