如何处理UI5一般性错误Cannot read property md of undefined
Suppose you have encountered with this error when you launch your Fiori application:
Uncaught Error: failed to load ‘FioriTest/view/Master.controller.js’ from ./view/Master.controller.js: TypeError: Cannot read property ‘md’ of undefined
The error is raised in framework file UIComponent-dbg.js. In most of the case the error is not in framework side, but due to wrong code in your own application code.
1). click the hyperlink:
2). You will be automatically navigated to the code where the exception - the error message is raised.
Set a breakpoint here:
3). re-launch your Fiori application, the breakpoint is triggered, you can then find the detail callstack by evaluating the variable e:
Search in Opportunity application, and we realized that there is a missing require statement:
after the require statement above is added, the error message changes:
so we are still lack of another necessary require statement, and this is the root cause of the error message. Once we add the missing require statement, issue will be resolved.
要獲取更多Jerry的原創(chuàng)文章,請(qǐng)關(guān)注公眾號(hào)"汪子熙":
總結(jié)
以上是生活随笔為你收集整理的如何处理UI5一般性错误Cannot read property md of undefined的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 《漫威蜘蛛侠》实验室光谱怎么解 实验室光
- 下一篇: 抖音u1s1什么梗 含义及出处介绍