sapui5 - Can't open sapui5 application extension from fiori launchpad
问题描述
I am extending sap standard approval application in a Web IDE
full stack. Made a few commits yesterday and at the end of the day, the application stopped working.
When I try to open the app from launchpad, I get nowhere and can only see errors in the console:
Web IDE
shows no errors, so I am clueless. UI5
version is old 1.28.xx so maybe it behaves differently in new versions, at least the error message. It is my fault in the code, but still, this error should be somehow recognized by Web IDE
if it is designed for UI5
apps.
解决方案
嗯,我发现了问题。我收到错误的“u”是格式化程序的全名,格式化程序名称没有用撇号括起来。
我之前从提交中创建了分支,并找到了一个工作版本。我已经运行它并且没问题。之后我从一些提交中部署了代码,它停止工作,但我仍在应用程序中,不知何故它显示了不同的 错误描述!瞧..
我迟早会在视图中发现错误,但让我感到沮丧的是,现在我不知道如何才能获得这个更好的错误消息。
我在想,当我将整个链接放入应用程序并请求特定项目和# 应用程序名称时,我会收到消息,但事实并非如此。下次使用上次提交的部署代码以及指向应用程序和项目编号的特定链接时,它再次显示来自问题的消息。
所以将''添加到格式化程序的解决方案
标题=“{部分: [{路径:'WorkitemText'},{路径:'ScNumber'},{路径:'CreatedByID'},{路径:'OnBehalfOfID'}], 格式化程序:'ui.s2p.srm.sc.approve.SRM_SC_APVExtension.util.Formatter.taskTitle' }"
错误在于缺少'
... 格式化程序:你... ...
推荐阅读
- java - Scanner 类如何在带有输入的 java 中工作?
- node.js - Lambda 的预签名 URL 生成代码超时,在本地工作
- css - CSS在智能手机/移动设备中有所不同
- reactjs - 使用按钮元素 onClick 的值更新状态
- css - 如何定位img元素位于其父元素的底部并水平居中
- typescript - Next.js 发生构建错误 ReferenceError: 组件未定义
- mysql - MySQL:从查询中获取平均值
- python - 无表类的刮表
- python - 下面的字符串置换循环是如何工作的?
- arrays - 如何使用 useState 钩子向对象数组内的对象添加属性