在npm开始发出警告后更新我的项目中的Angular版本
我添加了tsconfig.app.json文件
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": []
},
"files": [
"src/main.ts",
"src/polyfills.ts"
],
"include": [
"src/**/*.ts"
],
"exclude": [
"src/test.ts",
"src/**/*.spec.ts"
]
}
答案 0 :(得分:0)
正如这里提到的:How to get rid of the warning .ts file is part of the TypeScript compilation but it's unused
从包含数组中删除 "src/**/*.ts"
可以解决问题。
或者您可以在 tsconfig.app.json