1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Visual Studio Angular + ASP.NET Core project fails with "Could not find file app.component.ts"

Discussão em 'Angular' iniciado por Robin, Junho 21, 2025.

  1. Robin

    Robin Guest

    I'm trying to create a new ASP.NET Core project with Angular using Visual Studio 2022. I selected the Angular template during project creation. However, after the project is generated, I get the following error when opening it:

    Could not find file 'D:\Experiments\Experiments\AngularApp2\angularapp2.client\src\app\app.component.ts' Things I noticed:

    Before this error, Visual Studio prompted me about sharing anonymous project creation data with Google (Angular telemetry), and I clicked No.

    I already installed Node.js and Angular CLI globally using:

    npm install -g @angular/cli

    I tried to Deleting the project and creating it again (still same error) Reinstalling Angular CLI But sadly didn't worked nor I was able to find any proper solution about it. Any guidance or a workaround to fix this would be appreciated.

    Continue reading...

Compartilhe esta Página