Reputation: 81
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?
Upvotes: 8
Views: 9936
Reputation: 2000
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.
Upvotes: 1
Reputation: 81
@Felix If you're using @angular-builders/custom-webpack package, warnings are caused due to @ngtools/webpack v9 dependency
GitHub issue has been already opened
Upvotes: 8