Angular 9 ngtypecheck

Viewed 6891

After update to angular 9 i receives Warnings:

\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.

my tsconfig.app.json:

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "types": []
  },
  "files": ["main.ts", "polyfills.ts"],
  "exclude": [
    "test.ts",
    "**/*.spec.ts"
  ]
}

How to solve these warnings?

2 Answers

I got these compiler errors when I had configured @angular-devkit/build-angular 0.803.5 with @angular-* 11.2.13. The errors went away after bumping @angular-devkit/build-angular up to 0.1102.14.

Related