© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
21 replies
danilwaffle

browser-wasm hell

i'm trying to use raylib with browser-wasm and i get error whenever i try to call something from raylib:
MONO_WASM:    at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object , Span`1 , BindingFlags )
ManagedError@http://localhost:52900/_framework/dotnet.runtime.js:3:26843
Jn@http://localhost:52900/_framework/dotnet.runtime.js:3:31615
kr@http://localhost:52900/_framework/dotnet.runtime.js:3:35530
Ml/e.onRuntimeInitialized/l.javaScriptExports.call_entry_point@http://localhost:52900/_framework/dotnet.runtime.js:3:209315
Fc@http://localhost:52900/_framework/dotnet.runtime.js:3:136994
Mc@http://localhost:52900/_framework/dotnet.runtime.js:3:136420
run@http://localhost:52900/_framework/dotnet.js:3:35124
@http://localhost:52900/main.js:17:14
logging.ts:32:12
    d logging.ts:32
    Me exit.ts:161
    Me exit.ts:52
    Mc run.ts:22
MONO_WASM:    at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object , Span`1 , BindingFlags )
ManagedError@http://localhost:52900/_framework/dotnet.runtime.js:3:26843
Jn@http://localhost:52900/_framework/dotnet.runtime.js:3:31615
kr@http://localhost:52900/_framework/dotnet.runtime.js:3:35530
Ml/e.onRuntimeInitialized/l.javaScriptExports.call_entry_point@http://localhost:52900/_framework/dotnet.runtime.js:3:209315
Fc@http://localhost:52900/_framework/dotnet.runtime.js:3:136994
Mc@http://localhost:52900/_framework/dotnet.runtime.js:3:136420
run@http://localhost:52900/_framework/dotnet.js:3:35124
@http://localhost:52900/main.js:17:14
logging.ts:32:12
    d logging.ts:32
    Me exit.ts:161
    Me exit.ts:52
    Mc run.ts:22


here's my Program.cs:
https://hastebin.skyra.pw/ewuqobipew.csharp
and .csproj:
https://hastebin.skyra.pw/hokisihaje.htm
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

.NET 8 Wasm/Server Browser Error
C#CC# / help
3y ago
Hell
C#CC# / help
2y ago
compilation fails when using -s ASYNCIFY=1 in browser-wasm project
C#CC# / help
16mo ago
✅ Blazor WASM Headers
C#CC# / help
4mo ago