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.
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicmbw5CZ1Y2Y0cTZ0IDZwQjZ0QDO0gjZ0IDNmlTZ3YWO3MzNw8CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.png)
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.