jeff
01/23/2022, 3:41 PMkotlin {
js(IR) { ... }
}
and when I try to add ksp:
plugins {
...
kotlin("js") version "1.6.10"
id("com.google.devtools.ksp") version "1.6.10-1.0.2"
}
it gives me this error:
You already registered Kotlin/JS target with another compiler: legacy
Googling indicates that ksp does support IR, I think? What am I doing wrong?Jiaxiang
01/25/2022, 10:49 PMjeff
01/29/2022, 5:08 PMplugins {
kotlin("js") version "1.6.10"
id("com.google.devtools.ksp") version "1.6.10-1.0.2"
}
group = "com.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation("io.arrow-kt:arrow-optics:1.0.2-alpha.42")
// ksp("io.arrow-kt:arrow-optics-ksp-plugin:1.0.2-alpha.42")
implementation(kotlin("stdlib-js"))
testImplementation(kotlin("test"))
}
kotlin {
js(IR) {
binaries.executable()
nodejs {}
}
}
And here is the error, which points at the js(IR)
line:
You already registered Kotlin/JS target with another compiler: legacy
jeff
01/29/2022, 5:09 PMJiaxiang
01/31/2022, 9:37 PMjeff
02/01/2022, 8:08 PM