Hi all! I have a Kotlin-based frontend project usi...
# multiplatform
p
Hi all! I have a Kotlin-based frontend project using React, and now I want to extract DTOs to a multiplatform Gradle module. The problem is that now in runtime, I'm getting:
Uncaught TypeError: e.defineModule is not a function
. When looking into my bundle,
e.defineModule
occurs only once in such context:
Copy code
e.defineModule("kotlinx-serialization-kotlinx-serialization-core-jsLegacy",t)
Indeed I want to use kotlinx.serialization. This happens on legacy JS backend, and on IR some misterious
ClassCastException
occurs at runtime (maybe more changes would be required to make the project work with IR).
1
let me know if I should prepare a minimal reproducer
solved - I updated
org.jetbrains.kotlinx:kotlinx-serialization-json
from 1.0.0 (pretty old) to 1.3.0