Angular 9 ngtypecheck

戏子无情 提交于 2020-08-27 09:15:22

问题


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?


回答1:


@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



来源:https://stackoverflow.com/questions/62433397/angular-9-ngtypecheck

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!