1

我已经尝试安装@types/openui5,但它不起作用。

ui5.yaml:

specVersion: '2.0'
metadata:
  name: openui5-sample-app
type: application
framework:
  name: OpenUI5
  version: "1.78.1"
4

1 回答 1

2

您需要配置tsconfig.json. [1]例如:

{
  "compilerOptions": {
    "module": "none",
    "target": "es2018",
    "noEmit": true,
    "checkJs": true,
    "allowJs": true,
    "types": ["@sapui5/ts-types"]
  }
}
于 2020-07-30T13:39:06.520 回答