Apparently you can not mark a common class with
@JsExports
and also have a wasm target.
e.g.
commonMain/kotlin/sample/User.kt
package sample
import kotlin.js.JsExport
@JsExport
class User
fails with
> Task compileKotlinWasm FAILED
e: sample/src/commonMain/kotlin/sample/User.kt This annotation is not applicable to target 'class'
If I move the annotation up, to file level, like so
@file:JsExport
@file:JsExport
package koncurrent
import kotlin.js.JsExport
class User
fails with
> Task compileKotlinWasm FAILED
e: sample/src/commonMain/kotlin/sample/User.kt This annotation is not applicable to target 'file' and use site target '@file'
Any known workarround?? Some supressions perhaps??