Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 角度5:TypeScript编译中缺少。请通过';文件';或';包括';财产_Angular_Typescript_Angular5 - Fatal编程技术网

Angular 角度5:TypeScript编译中缺少。请通过';文件';或';包括';财产

Angular 角度5:TypeScript编译中缺少。请通过';文件';或';包括';财产,angular,typescript,angular5,Angular,Typescript,Angular5,我根据本文定制UI组件: https://github.com/akveo/nebular/blob/master/docs/articles/auth-ui.md 但在那之后,由于找不到文件,许多错误开始发生。文章说只需复制组件文件夹。我修复了所有问题,但现在得到的错误是: Module build failed: Error: C:\xampp\htdocs\utahclient\src\app\@theme\components\auth\index.ts is missing from

我根据本文定制UI组件:

https://github.com/akveo/nebular/blob/master/docs/articles/auth-ui.md
但在那之后,由于找不到文件,许多错误开始发生。文章说只需复制组件文件夹。我修复了所有问题,但现在得到的错误是:

Module build failed: Error: C:\xampp\htdocs\utahclient\src\app\@theme\components\auth\index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

下面是我的tsconfig文件:

{
  "compileOnSave": false,
  "compilerOptions": {
  "outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
  "node_modules/@types"
],
"lib": [
  "es2017",
  "dom"
],
"plugins": [
  { "name": "tslint-language-service"}
]
}
}