嗨,我正在尝试使用Angular运行管理面板,但是当我想运行项目时,出现以下错误
**An unhandled exception occurred: error TS5058: The specified path does not exist: 'D:/tsconfig.json'.**
这是我的TsConfig代码
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "ES5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
],
"paths": {
"@config/*": ["app/config/*"],
"@core/*": ["app/modules/core/*"],
"@menu/*": ["app/modules/menu/*"],
"@shared/*": ["app/modules/shared/*"],
"@user/*": ["app/modules/user/*"],
"exceljs":[
"node_modules/exceljs/dist/exceljs.min"
]
}
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
该如何解决该问题?
答案 0 :(得分:0)
如果您的tsconfig.app.json中有类似的内容:
"extends": "/tsconfig.json",
然后您应该修复路径。也许:
"extends": "../tsconfig.json",