Unknown compiler option '@angular/*'

Viewed 47

i was trying to use sonar cloud to analyse my code using azure devops pipeline

i faced this error, in Run Code Analysis task , but the step still passed in the end :

14:53:52.353 INFO: Found 1 tsconfig.json file(s): [/home/vsts/work/1/s/tsconfig.json]
##[error]14:53:52.489 ERROR: Unknown compiler option '@angular/*'.
##[debug]Processed: ##vso[task.logissue type=error;]14:53:52.489 ERROR: Unknown compiler option '@angular/*'.
##[debug]Processed: 14:53:52.489 ERROR: Unknown compiler option '@angular/*'.##vso[task.logissue type=error;]

this my tsconfig.json file

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "@angular/*": ["../node_modules/@angular/*"],
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  }
}

i'am able to generate the dist file.

can someone help me

1 Answers
Related