Skip to content

WASM issue using dotnet-serve #17036

Closed
@houstonhaynes

Description

@houstonhaynes

Describe the bug

FYI - I'm running into an issue with dotnet serve per the instructions. This is confirmed when running dotnet-serve on either Windows or Linux - I get a "nice clean" console in the browser with no issues but the screen is simply blank after loading (the index.html pre-load/splash page loads as expected).

Running locally from JetBrains Rider or dotnet run from the command line is fine, BTW. It's only when serving from the AppBundle

Avalonia 11.1.0
dotnet sdk 8.0.4

Screenshot 2024-09-16 133856

To Reproduce

dotnet publish -p:CompressionEnabled=false 
dotnet serve -d:./bin/Release/net8.0-browser/browser-wasm/AppBundle --port 5000 --address any 

Expected behavior

load of WASM page in browser

Avalonia version

11.1.0

OS

Windows, Linux, WebAssembly

Additional context

running from command line dotnet run is fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions