简体   繁体   English

未知的编译器选项“noImplicitOverride”

[英]Unknown compiler option 'noImplicitOverride'

In angular 13 app with Typescript 4.5.2, I am getting an error in the tsconfig.json file.在带有 Typescript 4.5.2 的 angular 13 应用程序中,我在 tsconfig.json 文件中遇到错误。 "noImplicitOverride" is set to true and gives "Unknown compiler option 'noImplicitOverride'.ts". “noImplicitOverride”设置为 true 并给出“未知编译器选项 'noImplicitOverride'.ts”。 I have set it to false and still get the error.我已将其设置为 false,但仍然出现错误。

{
"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.我回滚到 Typescript 4.4.2 并且错误消失了。

To fix this I had to install the NuGet package Microsoft.TypeScript.MSBuild in my Visual Studio solution.要解决此问题,我必须在 Visual Studio 解决方案中安装 NuGet package Microsoft.TypeScript.Z8849EA3BFBB651F3AA04CD60。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 未知的编译器选项'noStrictGenericChecks' - Unknown compiler option 'noStrictGenericChecks' TSConfig 未知编译器选项“lib” - TSConfig Unknown compiler option 'lib' 错误TS5023:未知的编译器选项'enableIvy' - error TS5023: Unknown compiler option 'enableIvy' 错误 TS5023:未知的编译器选项“compilerOptions” - error TS5023: Unknown compiler option 'compilerOptions' 错误TS5023:未知的编译器选项'p' - error TS5023: Unknown compiler option 'p' angular 2提前编译中未知的编译器选项“ angularCompilerOptions” - Unknown compiler option 'angularCompilerOptions' in angular 2 ahead-of-time compilation 使用VS 2015的Angular 2应用程序的VSTS中的“未知编译器选项lib” - 'Unknown Compiler Option lib' in VSTS of Angular 2 Application using VS 2015 错误 TS5023:未知的编译器选项“strictTemplates” - error TS5023: Unknown compiler option 'strictTemplates' 未知的编译器选项'文件'启动./node_modules/.bin/ng-xi18n - Unknown compiler option 'files' launching ./node_modules/.bin/ng-xi18n Angular 5 Service读取本地.json文件错误:未知的编译器选项'resolveJsonModule'和'esModuleInterop' - Angular 5 Service to read local .json file Error: Unknown compiler option 'resolveJsonModule' & 'esModuleInterop'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM