kotlinx.serialization
kotlinx.serialization copied to clipboard
Unable to use 'js code' in wasmJs with Kotlin 2.0.10 (or lower) + Serialization 1.7.2
Describe the bug
Hello! When I try to add kotlinx-serialization-core:1.7.2 to my project in KMP v2.0.10, I can't use JS code in the project, both external and js("...").
To Reproduce
This is the program I use to try to reproduce: untitled.zip .
Using gradle allTests will get errors, no errors if implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:1.7.2") is removed or kt is modified to 2.0.20.
I'm not quite sure if the nature of backward compatibility in Wasm would be similar to that in the JVM.
Does this mean that if I want to use v1.7.2 in WasmJs, the Kt version must be v2.0.20+ ?
Environment
- Kotlin version: 2.0.10
- Library version: 1.7.2
- Kotlin platforms: WasmJs
- Gradle version: 8.8