Hey all, has anyone had luck with integrating kotl...
# webassembly
s
Hey all, has anyone had luck with integrating kotlinx-datetime into a WASM build from multiplatform?
It works just fine when I'm doing local testing with
:composeApp:wasmJsBrowserDevelopmentRun
but when I build with
:composeApp:assemble
and put the output on my webserver, I get this error:
Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #304 "js_code" "kotlinx.datetime.internal.JSJoda.instant_$external_fun": function import requires a callable
a
@Ilya Goncharov [JB] and @Igor Yakovlev, who could work on it, are currently on vacation, but I keep the mention here so they can give you an answer.
s
Well, bizarrely enough I just wiped my build folder and now it seems to be working, must have been something cached in there that was busted or something...could have sworn I've done that in the past though
🫡 3
r
And yes solution for now is to clean build before production build whenever you have any change that requires linking (not every build)
🙌 1