angular - Angular 5:TypeScript 编译中缺少。请通过 'files' 或 'include' 属性确保它在您的 tsconfig 中
问题描述
我按照这篇文章自定义 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"}
]
}
}
解决方案
推荐阅读
- c++ - c++ Stack Array实现和显示错误
- jackson - 使用 Jackson 属性来累积状态作为序列化的副产品
- square - 如何修复 Lighthouse 返回的错误:NOT_HTML。提供的页面不是方形/weebly 网站的 HTML(作为 MIME 类型)错误?
- r - $ 是一个内部泛型函数,那么 tibble 包是如何扩展它的呢?
- amazon-quicksight - Amazon Quicksight 中组的行级安全性
- html - 如何将时间线标记添加到 HTML 音频标签控件
- r - 我无法让 gam.check 功能工作
- groovy - Groovy JsonSlurper - 如何检查空值与缺失字段?
- azure - 如何使用 Terraform 清除软删除的 APIM?
- html - 我怎样才能水平居中
在一个 ?