[英]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. 当我在LPD_CUST中添加其他参数时,我的UI5应用不再加载。
Screenshot - SAPUI5.Component Path 屏幕截图-SAPUI5.Component路径
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? 后端服务器在ui5 1.16.3发行版740上,但是由于即时消息是按需使用在线资源,所以应该没关系,对吗?
Codesnipped of the Component.js 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. 奇怪的是,当我配置启动板而没有该组件的附加信息时,但是它在沙盒模式下运行,这不允许我从URL获取位置哈希以在不同的后端服务之间进行切换。
I solved both of my problems. 我解决了两个问题。
Updating the Backend solved the sap.ui.define is not a function
Error. 更新后端解决了
sap.ui.define is not a function
错误。
To get the hash I had to use parent.location.hash
since the app was running inside an iFrame. 要获取哈希,我必须使用
parent.location.hash
因为该应用程序在iFrame中运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.