playing around with CMP wasm app and I'm trying to...
# webassembly
t
playing around with CMP wasm app and I'm trying to call a kotlin function exported with
JsExport
from javascript - basically text input config with the wasm app as the preview as you edit the config. Haven't seen this example and when trying to `import { setConfig } from './composeApp.mjs';`in another js file i'm getting
Failed to resolve module specifier "@js-joda/core". Relative references must start with either "/", "./", or "../".
TypeError: Failed to resolve module specifier "@js-joda/core". Relative references must start with either "/", "./", or "../".
. Thoughts?
Or should I move everything in the compose app and embed html for web related ui?
Still haven't found a solution to expose to js a kotlin function but the workaround i found is by communication with js via a global
window.config
variable. Js writes to it and kotlin polls the value every x millis. Not pretty but it gets the job done for my needs.