-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Comments
Make sure you have up-to-date .NET SDK installed. I.e. latest patch releases. |
Yep I actually just installed .net sdk 9 (rc1) when going through the document, so should be latest |
FYI - I'm running into a marginally related issue #17036 |
@davidgiga1993 you are running "net8.0" target on .NET 9 SDK. .NET Runtime team sometimes breaks compatibility between SDK versions, especially with WASM workloads. I just tested, and As for another issue when you switch to |
Just added wasm-tools-net8 note to our documentation AvaloniaUI/avalonia-docs#548 |
Also, thanks for noticing that |
.NET 9 issue is most likely caused by .NET runtime migrating to a newer Emnscripten version: dotnet/runtime#100334 |
I'm actually running in the same issue. I started with a clean slate. Ran all the commands in the documentation and when I went and tried running the browser project I got the missing "_framework/avalonia.js" issue. I did not change anything in the project. .NET SDK 8.0.400 I tried running it with .NET 9 and the Edit: |
@gpatrut-matica I can't help you without project itself, and the best I can advice:
|
Thanks - still recovering from a hurricane hit in Asheville, NC but will give it a try as soon as other matters have settled down. 👍 |
I can confirm that .NET 9 SDK targeting I also noticed:
|
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 to404 http://127.0.0.1:62860/_framework/avalonia.js
To Reproduce
Follow the guide, effectively:
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 withnet9.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?)The text was updated successfully, but these errors were encountered: