我有一个非常标准的 ui5.yaml 设置,如下所示..
specVersion: "2.3"
metadata:
name: itcpc.cms
type: application
framework:
name: SAPUI5
version: "1.84.26"
libraries:
- name: sap.ui.core
- name: sap.m
- name: sap.tnt
- name: themelib_sap_fiori_3
server:
customMiddleware:
- name: odataProxy
beforeMiddleware: serveResources
我尝试像这样更新SAPUI5版本..
$ yarn ui5 use sapui5@latest
这正确更新了我的 ui5.yaml 文件。
但是当我运行 ui5serve 时,我在 sap.tnt 依赖项上收到以下错误。
info normalizer:translators:ui5Framework Using SAPUI5 version: 1.118.0
⚠️ Process Failed With Error
Error Message:
Invalid ui5.yaml configuration for project @openui5/sap.tnt
Unsupported "specVersion"
C:\Users\10119451\.ui5\framework\packages\@openui5\sap.tnt\1.118.0\ui5.yaml:2
1: ---
2: specVersion: "3.0"
^
Your UI5 CLI installation might be outdated.
Supported specification versions: "2.3", "2.2", "2.1", "2.0", "1.1", "1.0", "0.1"
For details see: https://sap.github.io/ui5-tooling/pages/Configuration/#specification-versions
For details, execute the same command again with an additional '--verbose' parameter
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
我需要采取什么步骤来解决?
您需要安装最新版本的UI5工具才能使用最新的SAPUI5版本。您可以使用
npm i --save-dev @ui5/cli@latest
安装它。然后,将您的specVersion增加到3.0,因为这是最新的SAPUI5构建所需要的。
您可以在此处找到更多信息:https://sap.github.io/ui5-tooling/v3/updates/migrate-v3/