Phil Burk
06/28/2025, 1:09 AM//import exports from "./module.mjs"
import exports from "./composeApp.js"
console.log("Kotlin random code is " + exports.renderKotlinAudio());
But I always get:
SyntaxError: Unexpected identifier 'exports'
I am using Kotlin/Compose multi-platform code. My Kotlin WASM code has:
@OptIn(ExperimentalJsExport::class)
@JsExport
fun renderKotlinAudio(): Float {
return Random.nextFloat()
}
I spent a lot of time with Gemini giving me increasingly complex solutions that did not work.
Has anyone actually done this successfully?