I'm using Kotlin/JS with IR compiler: ``` kotlin {...
# javascript
j
I'm using Kotlin/JS with IR compiler:
Copy code
kotlin {
     js(IR) { ... }
 }
and when I try to add ksp:
Copy code
plugins {
     ...
     kotlin("js") version "1.6.10"
     id("com.google.devtools.ksp") version "1.6.10-1.0.2"
 }
it gives me this error:
Copy code
You already registered Kotlin/JS target with another compiler: legacy
Googling indicates that ksp does support IR, I think? What am I doing wrong?
d
I'm able to use KSP with the IR compiler just fine (same versions), but I'm using the
multiplatform
plugin instead of the
js
plugin. You could try changing that? Otherwise that error suggests you have another JS target somewhere else in your project?