grinder22
grinder22

Reputation: 583

What is the relationship between Blazor and Node.js?

I am starting some new projects using Blazor. I use a "hosted" configuration in which I have the client WASM project and also the the server project. I was using pretty much the latest version of VS 2019 for development.

Today for the first time ever in history I had a VS build simply hang. Cancelling the build was unresponsive, I had to kill VS from the task manager. When I googled that up I got a phone book of old posts that had nothing to do with Blazor. Apparently VS used to do this but it had long since been fixed.

So I decided for good measure to update my VS. It was behind by maybe a couple of patches. In doing so the VS Installer wouldn't let the update continue because the process "node" was running. That was how I discovered I had a couple of Node.exe process running on my machine. I have never installed or used NodeJS wittingly. The only reason it could be there is because of these new Blazor projects.

I have to assume the NodeJS process was also the reason my build hung. I tried googling up this relationship between Blazor and NodeJS to understand why these processes were running on my machine, but all I get is people who are trying to explicitly install NodeJS to use it their projects. I can't find anything that talks about NodeJS being part of Blazor by default, but there is no other reason for these Node.exe processes to be running on my machine.

Upvotes: 1

Views: 963

Answers (1)

grinder22
grinder22

Reputation: 583

I found this SO post: What is the role Nodejs in .NET 5 Blazor WebAssembly

Apparently it is a debug proxy. Here is a link directly to the MS documentation. How neither of these were top results in my initial search I do not know.

https://learn.microsoft.com/en-us/aspnet/core/blazor/debug?view=aspnetcore-6.0&tabs=visual-studio

Upvotes: 1

Related Questions