gpt4 book ai didi

json - 在配置文件 tsconfig.json 中找不到输入

转载 作者:搜寻专家 更新时间:2023-10-30 21:59:21 26 4
gpt4 key购买 nike

通过 npm,我已经为我的应用程序下载了 angular2-highcharts。我刚刚注意到 Visual Studio Code 在包的 tsconfig.json 文件中给我一个错误:

file: 'file:///c%3A/pdws-view-v2/node_modules/angular2-highcharts/tsconfig.json'
severity: 'Error'
message: 'No inputs were found in config file 'c:/pdws-view-v2/node_modules/angular2-highcharts/tsconfig.json'. Specified 'include' paths were '["src/**/*"]' and 'exclude' paths were '["examples","index.d.ts","node_modules","dist"]'.'
at: '1,1'
source: 'ts'

我真的不知道为什么会收到此错误或如何修复它。

这是文件:

{
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true,
"outDir": "dist",
"declarationDir": "dist",
"declaration": true
},
"compileOnSave": true,
"include": [
"src/**/*"
],
"exclude": [
"examples",
"index.d.ts",
"node_modules",
"dist"
],
"angularCompilerOptions": {
"genDir": "dist/",
"strictMetadataEmit": true,
"skipTemplateCodegen": true
}
}

有什么想法吗?谢谢!

最佳答案

TS 编译器希望在 tsconfig.json 所在的目录中有一个 .ts 文件。在同一目录中创建一个空的 file.ts,错误应该会消失。

关于json - 在配置文件 tsconfig.json 中找不到输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47205322/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com