Azure / Azure/static-web-apps

Blazor wasm with Microsoft.Typescript.MSBuild fails to deploy

Open
#1,459 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Blazor wasm with Microsoft.Typescript.MSBuild fails to deploy

Using this package:
` `
` `
` net8`

And I install node like this but it makes no difference to the error logs
Screenshot 2024-04-26 at 9 48 53 PM

It seems node is installed, but MSBuild can't find it...

The errors:
` Shared -> /github/workspace/Shared/bin/Release/net8/Shared.dll
/github/home/.nuget/packages/microsoft.typescript.msbuild/5.5.0-beta/tools/Microsoft.TypeScript.targets(320,5): error MSB6003: The specified task executable "node" could not be run. System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'node' with working directory '/github/workspace/Client'. No such file or directory [/github/workspace/Client/Client.csproj]`

`/github/home/.nuget/packages/microsoft.typescript.msbuild/5.5.0-beta/tools/Microsoft.TypeScript.targets(320,5): error MSB6003: at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec) [/github/workspace/Client/Client.csproj]
/github/home/.nuget/packages/microsoft.typescript.msbuild/5.5.0-beta/tools/Microsoft.TypeScript.targets(320,5): error MSB6003: at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo) [/github/workspace/Client/Client.csproj]
/github/home/.nuget/packages/microsoft.typescript.msbuild/5.5.0-beta/tools/Microsoft.TypeScript.targets(320,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/github/workspace/Client/Client.csproj]`

`/github/home/.nuget/packages/microsoft.typescript.msbuild/5.5.0-beta/tools/Microsoft.TypeScript.targets(320,5): error MSB6003: at TypeScript.Tasks.VsTsc.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [/github/workspace/Client/Client.csproj]`

`/github/home/.nuget/packages/microsoft.typescript.msbuild/5.5.0-beta/tools/Microsoft.TypeScript.targets(320,5): error MSB6003: at Microsoft.Build.Utilities.ToolTask.Execute() [/github/workspace/Client/Client.csproj] | 1 | Please build your app locally before publishing. | https://docs.microsoft.com/en-us/azure/app-service/configure-language-dotnetcore?pivots=platform-linux`

This is running the pre-release 5.5.0-beta but it also happens on 5.4.4

As a workaround I exclude typescript from the github action, but it would be better to force consistency.
```


all
runtime; build; native; contentfiles; analyzers; buildtransitive


```

Much appreciated

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.