Hi all!, I am having a bit of trouble setting up K...
# announcements
k
Hi all!, I am having a bit of trouble setting up Kotlin multiplatform project with multiple gradle modules.
Copy code
Could not create an instance of type org.jetbrains.kotlin.gradle.targets.js.subtargets.KotlinBrowserJs.
Failed to apply plugin [class 'org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin']   > The Kotlin Gradle plugin was loaded multiple times in different subprojects, which is not supported and may break the build.
     This might happen in subprojects that apply the Kotlin plugins with the Gradle 'plugins { ... }' DSL if they specify explicit versions, even if the versions are equal.
     Please add the Kotlin plugin to the common parent project or the root project, then remove the versions in the subprojects.
     If the parent project does not need the plugin, add 'apply false' to the plugin line.
My root 
build.gradle.kts
 does not have a plugin block and my KMM module has the plugin block as follows.
Copy code
plugins {
    kotlin("multiplatform") version Versions.kotlin
    application
    kotlin("plugin.serialization") version Versions.kotlin
}
z
Might want to ask in #C3PQML5NU
k
Thanks for the tip. I found this is a known and open issue.