https://kotlinlang.org logo
Title
j

janvladimirmostert

11/28/2021, 9:39 AM
when I add a
kspJs
configuration,
dependencies {
   add("kspJvm", "io.jvaas:jvaas-observe")
   add("kspJs", "io.jvaas:jvaas-observe")
   //ksp("io.jvaas:jvaas-observe")
}
I get a failure with Execution failed for task ':applications:od-server:compileProductionExecutableKotlinJs'.
Failed to calculate the value of task ':applications:od-server:compileProductionExecutableKotlinJs' property 'entryModule$kotlin_gradle_plugin'.
> Collection has more than one element. Any ideas what this could be? I've posted the full code on https://stackoverflow.com/questions/70139266/ksp-on-kotlin-multiplatform-fails-on-the-kspjs-with-collection-has-more-than-on and a reproducible example here: https://github.com/janvladimirmostert/observable-demo
j

Jiaxiang

11/30/2021, 8:45 PM
looks like a bug in the gradle plugin to me, will take a note and investigate.
j

janvladimirmostert

12/01/2021, 3:16 PM
thanks Jiaxiang!
m

Marc Dietrichstein

12/03/2021, 4:41 PM
I have also just stumbled across this error.
👍 1