A comment on this bug says serialization 1.0.0-RC is compatible with the Kotlin/JS IR compiler. I’m using an even newer version.
plugins {
kotlin("multiplatform") version "1.4.30"
kotlin("plugin.serialization") version "1.4.30"
application
}
...
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0-RC")
We are using JS-IR with Serizliazation and it is OK. If the errors you see are in the idea, it is possible that you have not synced gradle with the idea. If the error is in the console gradle build, probably something wrong with caches. Try to check gradle configuration with gradle dependencies.
I get the same errors running gradle build from command line. What am I looking for in gradle dependencies? Here is the online version (I ran gradle --scan dependencies):