Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web Assembly doesn't work after following documentation #16989

Open
davidgiga1993 opened this issue Sep 11, 2024 · 3 comments
Open

Web Assembly doesn't work after following documentation #16989

davidgiga1993 opened this issue Sep 11, 2024 · 3 comments

Comments

@davidgiga1993
Copy link

davidgiga1993 commented Sep 11, 2024

Describe the bug

When following the steps described in the documentation and running the web server using dotnet run the web app can't load due to 404 http://127.0.0.1:62860/_framework/avalonia.js

To Reproduce

Follow the guide, effectively:

dotnet workload install wasm-tools
dotnet new install avalonia.templates
mkdir BrowserTest
cd BrowserTest
dotnet new avalonia.xplat
cd BrowserTest.Browser
dotnet run

Expected behavior

The sample app should work

Avalonia version

11.1.0

OS

WebAssembly

Additional context

The template used <TargetFramework>net8.0-browser</TargetFramework>, but I also tested with net9.0-browser.

I've also noticed that the path described in the documentation under Testing AppBundle locally doesn't seem to be correct (or at least for me this doesn't match up at all, maybe it's related to the issue above?)

@maxkatz6
Copy link
Member

Make sure you have up-to-date .NET SDK installed. I.e. latest patch releases.
There were reports of similar problems on older .NET 8 builds.

@davidgiga1993
Copy link
Author

Yep I actually just installed .net sdk 9 (rc1) when going through the document, so should be latest

@houstonhaynes
Copy link

houstonhaynes commented Sep 16, 2024

FYI - I'm running into a marginally related issue #17036

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants