```plugins { kotlin("multiplatform") kotli...
# multiplatform
m
Copy code
plugins {
    kotlin("multiplatform")
    kotlin("plugin.serialization")
}

kotlin {
    js(IR) {
        browser()
    }
    jvm()

    sourceSets {
        val commonMain by getting {
            dependencies {
                implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
                implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.3.2")
            }
        }
    }
}

group = "com.martmists"
version = "1.0"
Why is the code in this submodule saying serialization and datetime don't exist when I try to compile it, but only for compileKotlinJs?
m
m
Mine is not using inner classes though
Copy code
@Serializable
data class CommentObject(
    val id: Long,
    val post: Long,
    val parent: Long?,
    val author: Long,
    val content: String,
    val created: LocalDateTime,
    val updated: LocalDateTime
)
m
Can you try cleaning and rebuilding the project?
m
The same error occurs
m
Can you share a sample project to reproduce the issue? I can try to build on my machine and see if I can find the cause