Unknown compiler option 'noImplicitOverride'
Asked Answered
C

2

6

In angular 13 app with Typescript 4.5.2 , I am getting an error in the tsconfig.json file . "noImplicitOverride" is set to true and gives "Unknown compiler option 'noImplicitOverride'.ts". I have set it to false and still get the error.

{
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitOverride": true ,
"noPropertyAccessFromIndexSignature": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "es2017",
"module": "es2020",
"lib": [
  "es2020",
  "dom"
]
Catamenia answered 18/11, 2021 at 16:57 Comment(3)
have you restarted your angular dev server?Swansea
@Swansea yes I did but didn't workCatamenia
download : JavaScript and TypeScript Nightly in visual studio codeUnaccompanied
C
3

To fix this I had to install the NuGet package Microsoft.TypeScript.MSBuild in my Visual Studio solution.

Colbert answered 8/8, 2022 at 2:57 Comment(0)
P
3

I faced the same issue. I rolled back to Typescript 4.4.2 and the error disappeared.

Pyxidium answered 23/11, 2021 at 9:0 Comment(0)
C
3

To fix this I had to install the NuGet package Microsoft.TypeScript.MSBuild in my Visual Studio solution.

Colbert answered 8/8, 2022 at 2:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.