0

我有这个错误tsconfig.ts:文件:

'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 中一切正常..

4

1 回答 1

0

在 Soultion 中添加 tsconfig.js 文件后,我也遇到了同样的问题

然后我添加了 Test.ts 文件并在 tsconfig 文件中添加了下面提到的代码行

"include": ["**/*"]
,"exclude": ["node_modules","wwwroot" ]

然后它对我有用,根本没有错误

我从这个链接得到了答案

于 2018-04-20T14:45:21.677 回答