Skip to content

UseReactDevelopmentServer with UseSpa keeps console open. #11597

Closed
@solvingproblemswithtechnology

Description

Describe the bug

When I use "UseReactDevelopmentServer", the title of the console changes to "npm" and when I stop debugging with Visual Studio, this console keeps open. This can be pretty annoying when debugging fast.

To Reproduce

Version: 2.2.300, 3.0.0-preview6

  1. Create a React app using the template (or use UseReactDevelopmentServer).
  2. Start Visual Studio debugging or use dotnet run.
  3. Stop debugging.

Expected behavior

When I stop, the console should be closed.

Additional context

Looking at the code, I don't see any code to close npm. It could use IApplicationLifetime to close the process on Shutdown, for example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbugThis issue describes a behavior which is not expected - a bug.feature-spahelp wantedUp for grabs. We would accept a PR to help resolve this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions