javascript - Fiori Launchpad cant start App (negative cache - sap.ui.define is not a function)
问题描述
My UI5 app isn't loading anymore when I add additional Parameters in the LPD_CUST.
Screenshot - SAPUI5.Component Path
Launchpad Error:
Error - found in negative cache: 'com/untersee/flexnet/supplier/Component.js' from /sap/bc/ui5_ui5/sap/zfn_request/Component.js: TypeError: sap.ui.define is not a function
The Backend Server is on release 740 with ui5 1.16.3, but since im using online resources from ondemand it shouldnt matter, right?
Codesnipped of the Component.js
The weird thing is, when I configure the Launchpad without the additional information for the component it works - but it runs in sandbox mode, which doesn't allow me to get the location hash from the URL for switching between different backend services.
解决方案
I solved both of my problems.
Updating the Backend solved the sap.ui.define is not a function
Error.
To get the hash I had to use parent.location.hash
since the app was running inside an iFrame.
推荐阅读
- python - Pip 不在虚拟环境中安装包
- javascript - 二维数组主对角线上的最小值
- javascript - Google firestore 获取单条记录。但无法投射到对象
- java - 在两台机器上设置 solr cloud
- html - 禁用单击角垫表中的整行
- java - Runtime.exec() 可执行库在非 root 中不起作用
- ruby - 在 ruby 中获取 'oracle.sql.TIMESTAMPLTZ@63dd73c5' 的值
- deep-learning - 更改 Densenet 中的输入通道数
- kubernetes - 是否可以从文件末尾获取 Kubernetes Pod 日志的最后 N 个字节?
- robotframework - 如何从机器人框架中的数组中获取第一项