You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using launch settings from .../BlazorServerlessApp/Properties/launchSettings.json...
Building...
/usr/share/dotnet/sdk/9.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets(512,5): error NETSDK1082: There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'.
No matter what I do after that command, I get the same error trying to build or run. From this StackOverflow post, it would appear that the error means that one of my dependencies is not compatible with the browser-wasm target.
So my question is, how do I host my Blazor app in a Lambda? I'm sure I'm doing something wrong as this seems like a pretty common use case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I've been trying to set up a simple Blazor web app to deploy to Lambda, but having some issues right off the bat. Wondering what I'm doing wrong.
Following the instructions from this post https://toxigon.com/run-blazor-based-dotnet-web-applications-on-aws-serverless, I:
dotnet new blazorwasm -o BlazorServerlessApp
cd BlazorServerlessApp/
dotnet run
- this works!dotnet add package Amazon.Lambda.AspNetCoreServer
dotnet run
:No matter what I do after that command, I get the same error trying to build or run. From this StackOverflow post, it would appear that the error means that one of my dependencies is not compatible with the
browser-wasm
target.So my question is, how do I host my Blazor app in a Lambda? I'm sure I'm doing something wrong as this seems like a pretty common use case.
System information:
Beta Was this translation helpful? Give feedback.
All reactions