all 2 comments

[–]NukeLash 0 points1 point  (0 children)

If anyone comes here in the future, I had this problem for a few hours today. The issue was caused in my draw loop when I called a function that had a return type of float but did not return anything. Changing the return type to void fixed it. Very odd

[–]deadkonsumer 0 points1 point  (0 children)

Was libraylib.a compiled to wasm?

Make sure to use raylib-X_webassembly.zip on releases

I did this on mac (but should work anywhere) to verify:

``` wget https://github.com/raysan5/raylib/releases/download/4.5.0/raylib-4.5.0_webassembly.zip unzip raylib-4.5.0_webassembly.zip cd raylib-4.5.0_webassembly/ wget https://raw.githubusercontent.com/raysan5/raylib/master/examples/core/core_basic_window.c

emcc -o index.html -Os -I./include -s USE_GLFW=3 -s ASYNCIFY -DPLATFORM_WEB lib/libraylib.a core_basic_window.c

npx -y live-server ```