小编jas*_*noh的帖子

Angular 9 ngtypecheck

更新到 angular 9 后,我收到警告:

\src\main.ngtypecheck.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
\src\polyfills.ngtypecheck.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Run Code Online (Sandbox Code Playgroud)

我的 tsconfig.app.json:

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "types": []
  },
  "files": ["main.ts", "polyfills.ts"],
  "exclude": [
    "test.ts",
    "**/*.spec.ts"
  ]
}
Run Code Online (Sandbox Code Playgroud)

如何解决这些警告?

angular angular9

7
推荐指数
1
解决办法
4578
查看次数

标签 统计

angular ×1

angular9 ×1