I just tried to publish a wasmJs project again but...
# webassembly
m
I just tried to publish a wasmJs project again but at runtime I only get an error.
Uncaught (in promise) RuntimeError: unreachable
The error messages don’t help me at all to track this down to the source. It seems to be in the compiled wasm code and it seems to be related to the Ktor client. Can anybody help me to track that down to my source code?
b
you can put breakpoint on that line and look what’s on the stack
seems there is exception from JS
did you compile with some additional compiler options?
m
I compile with
Copy code
-Xwasm-debugger-custom-formatters -Xwasm-attach-js-exception
but not using them doesn’t make a difference. In the meantime I found out that doing a clean build with
wasmJsBrowserDevelopmentExecutableDistribution
and loading the result onto my server works without problems as before. If I then do another clean build with
wasmJsBrowserDistribution
it produces the crash again. So, it looks to me as if there is some code optimization issue which is causing the problem. I am using: compose = “1.8.2” but “1.8.1" shows the same problem kotlin = “2.1.21”