[英]An unhandled exception occurred in angular using ng serve
Hi I am Trying to Run an admin Panel With Angular but when I Want To Run the Project I get The following Error嗨,我正在尝试使用 Angular 运行管理面板,但是当我想运行项目时出现以下错误
**An unhandled exception occurred: error TS5058: The specified path does not exist: 'D:/tsconfig.json'.**
This Is My TsConfig Code这是我的 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
}
}
what Should I do To fix The problem?我应该怎么做才能解决这个问题?
If you have something similar in your tsconfig.app.json like this:如果您的 tsconfig.app.json 中有类似的内容,如下所示:
"extends": "/tsconfig.json",
then you should fix the path.那么你应该修复路径。 Maybe:也许:
"extends": "../tsconfig.json",
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.