Hello, big congratz to the Kotlin JS Team for 1.4-...
# javascript
g
Hello, big congratz to the Kotlin JS Team for 1.4-M1 👏👏👏👏 I’ve tried it right now and
@JsExport
has an issue with a data class that is
@Serializable
:
Copy code
@CommonJsExport
@Serializable
data class EventDetails(var answer_id: Int? = null)
At compilation, I get the following error:
Copy code
e: java.lang.AssertionError: Properties without fields are not supported my.package.EventDetails.Companion_instance
So the generated
serializer()
of
kotlinx-serialization
blocks
@JsExport
i
Hi! Can you create an issue here - http://kotl.in/issue and attach sample code
g
Hi, sure will do 🙂
d
This happens for every class with a companion object, not related to serialization.
g
Indeed, thank you @diesieben07