0

I cloned an Angular application and I'm getting the below error for the "target" property in the tsconfig.json file in Visual Studio 2019. I am currently running on Angular v16.1.4, and Typescript v5.1.6. I'm also wondering if fixing this error will fix the remaining errors in the solution?

I've tried updating the "target" property to the other versions of ES but I'm still getting the error. Anyone know how to resolve this issue?

enter image description here

Per this question Typescript target warnings after Angular 15 update, there was a GitHub issue created https://github.com/angular/angular-cli/issues/25290.

  • Not sure if this will help ... but something I've done in cases like this is to create a new project so it has all of the correct bootstrapping files. I use the Angular CLI (I haven't used Visual Studio for Angular development but the Visual Studio Angular template may work for this as well.) Then I replace the app folder with the folder from the original project. Worth a try? – DeborahK Jul 14 '23 at 16:08
  • what if you try opening that Angular project with VSCode? I have the exact value `ES2022` for `target` in a real project application that I'm working on, I personally don't use Visual Studio for frontend development – Andres2142 Jul 14 '23 at 16:10

0 Answers0