简体   繁体   中英

Unknown compiler option 'noImplicitOverride'

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"
]

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

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

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