TL;DR: I missed some docs, so you don’t have to.
If you were like me and missed reading this readme: GitHub - karl-zylinski/odin-raylib-web: Make games using Odin + Raylib that work in the browser
Then you might be doing things in your odin code that WASM doesn’t like.
So:
- check that FAQ
- test your WASM export often,
- don’t just export your game once at the end of a game jam
- you are likely to see wasm’s specific errors
For some more information and context, see this issue: PSA: If you have weird WASM issue when exported, check your STACK_SIZE, and read the odin-raylib-web's readme in full · Issue #41 · karl-zylinski/odin-raylib-hot-reload-game-template · GitHub