dasralph
01/03/2021, 11:43 AMIllegalStateException: Can't find name for declaration FUN name:Foo_init_$Create$ visibility:public modality:FINAL <> (bar:kotlin.String?, $mask0:<http://kotlin.Int|kotlin.Int>, $marker:kotlin.js.DefaultConstructorMarker?) returnType:api.model.Foo
.
I assume this is a bug but is there a small workaround for it? Or do I need to wait until it is fixed?
@ExperimentalJsExport
@JsExport
data class Foo(
val bar: String? = null
)
Posted in #multiplatformturansky
01/03/2021, 8:01 PMturansky
01/03/2021, 8:02 PMdasralph
01/04/2021, 1:27 AM@file:JsExport
it works 🙂
thanks for the link