I am trying to create a multiplatform library with both JVM (Compose) and JS target. To do so, I configure it using I am trying to create a multiplatform library with both JVM (Compose) and JS target. To do so, I configure it using
compose.desktop {
application {
disableDefaultConfiguration()
from(kotlin.targets["compose"])
}
}
With the JS target in legacy mode, everything compile and run just fine. In IR mode I however get the following error:
:compileKotlinJsIr FAILED
e:androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 1.0.0-alpha11) expects a minimum runtime version of 1.0.0-alpha11.
Is there maybe a workaround or is there another option to limit the scope of the Compose plugin?