Having successfully developed an application using SAPUI5 1.108
, I encountered a setback when attempting to deploy it to a system running SAPUI5 version 1.71
. The older version lacks certain features, causing the application to fail. In order to address this issue, I decided to create a standalone build of the application. However, even after building the application in this manner, it still failed to work locally when running the index.html
file.
Various attempts to build a self-contained application, including:
ui5 build self-contained --include-all-dependencies --clean-dest --dest dist
ui5 build self-contained --include-all-dependencies --config=ui5.yaml --clean-dest --dest dist
Resulted in the error message appearing in the browser console:
Uncaught ReferenceError: sap is not defined at sap-ui-custom.js:1:1
An observation revealed that the resources
directory within the built application was missing the sap-ui-core.js
file. Despite this, the path in the index.html
was pointing to the updated sap-ui-custom.js
file.
https://i.sstatic.net/X74nT.png
The version of @ui5/cli
being utilized is 3.7.0
.