martmists
01/19/2022, 3:17 PMplugins {
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?Mayank
01/19/2022, 9:21 PMmartmists
01/19/2022, 11:06 PMmartmists
01/19/2022, 11:06 PM@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
)
Mayank
01/20/2022, 12:18 PMmartmists
01/20/2022, 6:21 PMMayank
01/20/2022, 7:41 PM