I've updated my (previously working) WASM project ...
# webassembly
d
I've updated my (previously working) WASM project to latest deps, but now I'm seeing error: "homepage.uninstantiated.mjs:359 Using experimental Kotlin/Wasm may require enabling experimental features in the target environment." I'm using latest Chrome, so I didn't expect to see any more 'experimental' issues? Also, the build runs fine with
wasmJsBrowserRun
, just not when distributed. So, I think this message is being incorrectly triggered and maybe there's another exception I can't see - any suggestions?
r
Make sure your .wasm file is served with a correct content type header.
d
The problem turned out to be that I was deploying the output from the webpack build folder rather than the distribution build folder, and this was missing a key
js
file. This wasn't entirely in error, since the earlier (pre-alpha) versions of WASM I was using before didn't output usable distribution. I can't remember why exactly, but taking the webpack instead, was a successful workaround at the time. Anyway, distribution now works, so switching deployment/copy tasks to that folder fixed everything - leaving here in case it helps another Alpha migrator!