简体   繁体   中英

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

**An unhandled exception occurred: error TS5058: The specified path does not exist: 'D:/tsconfig.json'.**

This Is My TsConfig Code

{
  "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:

"extends": "/tsconfig.json",

then you should fix the path. Maybe:

"extends": "../tsconfig.json",

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM