我在tsconfig.ts:file中有这个错误:
'No inputs were found in config file 'c:/Projects/Angular2//src/tsconfig.json'.
Specified 'include' paths were '["src/**/*.ts"]' and 'exclude' paths were '["node_modules"]'.'这是我的tsconfig.ts:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": ["es2015", "dom"],
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"types" : ["node", "jasmine"],
"typeRoots": [
"../node_modules/@types"
]
},
"include": [ "src/**/*.ts" ],
"exclude": [ "node_modules" ]
}Angular 2 v.3 - rc.3,TS如何实现这个目标?在v.2.0.0中,一切正常。
发布于 2018-04-20 22:45:22
在解决方案中添加tsconfig.js文件后,我也遇到了同样的问题
然后我添加了Test.ts文件,并在tsconfig文件中添加了下面提到的代码行
"include": ["**/*"]
,"exclude": ["node_modules","wwwroot" ]那么它对我来说是有效的,一点错误都没有
我从这个link得到了答案
https://stackoverflow.com/questions/42830644
复制相似问题