【发布时间】:2020-06-09 00:56:09
【问题描述】:
在 npm start 发出警告后更新我的项目中的 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"
]
}
【问题讨论】:
-
警告是由于 lint 配置。下面的讨论可能会有所帮助。 stackoverflow.com/questions/47778839/….
-
@LaminooLawrance 它已经添加了它不起作用。
-
@Bansi29 你能删除 src 吗?然后再试一次? == "*/.spec.ts",像这样
-
嗨,@Energy 感谢您的回复,但是,它收到了
report\monthly-report.component.spec.ts is part of the TypeScript compilation but it's unused. Add only entry points to the 'files' or 'include' properties in your tsconfig.的警告