Cowborg
Cowborg

Reputation: 2871

"node.exe exited with code -1073741819" When building in VS2019

I have an asp .net core-project with react and typescript as front end.

I came back to work this morning, ran "Build" on my project, got this error message. Does anyone know what it means and how to fix it?

Severity Code Description Project File Line Suppression State Error MSB6006 "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VisualStudio\NodeJs\node.exe" exited with code -1073741819. MyProject.Web C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.5\build\Microsoft.TypeScript.targets 463

The only hint I can see is File: "Typescript Targets" When I checked Solution Properties->Typescript Builds I see that my selected Typescript version (3.1) is "unavailable" and that the only available version is 3.5, so I changed to 3.5, but that didnt do anything

Upvotes: 2

Views: 3779

Answers (3)

Aly González
Aly González

Reputation: 61

My trouble was the versions of node.js, I upgraded from 10 to 18 node version in my windows 10 and my Visual Studio 2019 has 12.2 version.

The node of Visual Studio 2019 is here: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\NodeJs>

For running other applications I had taht set NODE_OPTIONS=--openssl-legacy-provider and then 12.2 version of Visual Studio doesn't support this option.

I deleted this option of setting and it working.

Upvotes: 0

Fabio Napodano
Fabio Napodano

Reputation: 1249

only way I have found to solve this is rebooting

Upvotes: 0

Cowborg
Cowborg

Reputation: 2871

Correct answer (for me):

Turns out Ive lost the NuGet-package Microsoft.TypeScript.MSBuild, I reinstalled it and now it works

Upvotes: 2

Related Questions