Azure Static Web Apps. For bugs and feature requests, please create an issue in this repo. For community discussions, latest updates, kindly refer to the Discussions Tab. To know what's new in Static Web Apps, visit https://aka.ms/swa/ThisMonth
Blazor wasm with Microsoft.Typescript.MSBuild fails to deploy
Using this package:
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.5.0-beta"><PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.3" /><TargetFramework>net8</TargetFramework>
And I install node like this but it makes no difference to the error logs
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]
Blazor wasm with Microsoft.Typescript.MSBuild fails to deploy
Using this package:
<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="5.5.0-beta">
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.3" />
<TargetFramework>net8</TargetFramework>
And I install node like this but it makes no difference to the error logs
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.
Much appreciated