首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >angular中的Tsconfig

angular中的Tsconfig
EN

Stack Overflow用户
提问于 2017-03-16 17:57:15
回答 1查看 622关注 0票数 0

我在tsconfig.ts:file中有这个错误:

代码语言:javascript
复制
'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:

代码语言:javascript
复制
{
  "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中,一切正常。

EN

回答 1

Stack Overflow用户

发布于 2018-04-20 22:45:22

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

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

代码语言:javascript
复制
"include": ["**/*"]
,"exclude": ["node_modules","wwwroot" ]

那么它对我来说是有效的,一点错误都没有

我从这个link得到了答案

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42830644

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档