Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript OpenUI5:TypeError:this.getAutoPrefixId不是函数_Javascript_Sapui5 - Fatal编程技术网

Javascript OpenUI5:TypeError:this.getAutoPrefixId不是函数

Javascript OpenUI5:TypeError:this.getAutoPrefixId不是函数,javascript,sapui5,Javascript,Sapui5,我正在OpenUI5+NodeJS上编写一个小应用程序。调用index.html时,浏览器控制台中出现以下错误:TypeError:this.getAutoPrefixId不是函数。stacktrace的顶部如下所示: init sap-ui-core.js line 175 init Component.js:19 constructor ManagedObject-dbg.js:444 constructor ManagedObject-dbg.js:463 construc

我正在OpenUI5+NodeJS上编写一个小应用程序。调用
index.html
时,浏览器控制台中出现以下错误:
TypeError:this.getAutoPrefixId不是函数
。stacktrace的顶部如下所示:

init sap-ui-core.js line 175  
init Component.js:19  
constructor ManagedObject-dbg.js:444  
constructor ManagedObject-dbg.js:463  
constructor Component-dbg.js:244  
init Component.js:19
来自我的
Component.js
UIComponent.prototype.init.apply(这是参数)
请帮忙


关于Lev.

问题是
init
函数是这样声明的:
init=>(){}
。在将它转换为一个常规函数(我的意思是
init:function(){}
)之后,一切都变好了