Hello. So, I’m getting a SerializationException on my React app after using the Kotlin/JS builder.
I don’t understand the issue at all. At first, I’m getting this similar error on another Serializable class. It was solved by adding a @JsExport and adjusting its subsequent classes to have the same annotations.
Now, I’m getting this particular error on a class which I use for Generic serialization. I’m not sure if the issue is because it’s a Generic class? @JsExport and @Serialization is present on this, so I’m not sure if I’m missing something.
I hope someone can help me. Thank you.
t
Tóth István Zoltán
07/28/2023, 8:47 AM
It's just a guess, but if you don't use the class somewhere in Kotlin code the DCE may simply drop it from the code.