Problem Description
I have developed a Spring Boot application in SAP Business Application Studio that provides an OData service implementation. Then I used the create from template function of BAS to create a SAP UI5 application.
Now I want to deploy this SAP UI5 application on SAP Business Technology Platform.
execute command line
npm run build:cf
:
Error:
fiori: not found
problem analysis
We opened Business Application Studio with Chrome developer tools and found that the terminal panel is implemented through a canvas
tab.
In the node_modules
folder of a SAP UI5 application that can be deployed normally, find the fiori-tools
folder and find that there is no bin
folder. Keep looking @sap/ux-ui5-tooling
:
The executable file of @sap/ux-ui5-tooling
is found in the bin
folder of fiori
:
Therefore, the solution is to add the following dependencies in package.json
project to solve the problem:
"ui5": {
"dependencies": [
"@sap/ux-ui5-tooling",
"fiori-tools"
]
Summarize
What is @sap/ux-ui5-tooling
?
SAP Fiori Tools - UI5 Tooling contains a set of custom middleware that can be used with the command ui5 serve, and custom tasks that can be used with the command ui5 build. Additionally, this module exposes cli fiori products, for example the fiori run command is a wrapper for the ui5 serve command and provides some additional parameters as well as fiori add deploy-config and fiori add flp-config to extend existing projects.
When developing UI5 projects on your local system, you should use UI5 Server (ui5 serve) instead of UI5 Builder (ui5 build). The project only needs to be built when the project is deployed.
What is fiori-tools
?
SAP Fiori tools provide many features to improve the efficiency of developing SAP Fiori applications using SAP Fiori elements or SAPUI5 freestyle method. Together with SAP Fiori elements, SAP Fiori tools reduce development time, maintenance costs, and take advantage of a metadata-driven UI.
SAP Fiori tools include the following extensions:
- Wizard for initial application creation.
- Service Modeler for viewing data models.
- XML and form-based editor for maintaining annotations - SAP Fiori Elements only.
- Application page structure and ability to configure SAPUI5 flexibility settings - SAP Fiori Elements only.
- Guided development for implementing functions - SAP Fiori Elements only.
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。