Hey all, has anyone had luck with integrating kotlinx-datetime into a WASM build from multiplatform?
Shane Schaefer
07/17/2024, 7:34 AM
It works just fine when I'm doing local testing with
:composeApp:wasmJsBrowserDevelopmentRun
Shane Schaefer
07/17/2024, 7:35 AM
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
Artem Kobzar
07/17/2024, 7:55 AM
@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
Shane Schaefer
07/17/2024, 8:10 AM
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