[英]An unhandled exception occurred in angular using ng serve
嗨,我正在嘗試使用 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
}
}
我應該怎么做才能解決這個問題?
如果您的 tsconfig.app.json 中有類似的內容,如下所示:
"extends": "/tsconfig.json",
那么你應該修復路徑。 也許:
"extends": "../tsconfig.json",
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.