I am getting gradle errors when enabling serializa...
# serialization
a
I am getting gradle errors when enabling serialization in a JS project.:
Copy code
Build file '/Users/avanwieringen/Development/scribbles/kotlin/web-workers/common/build.gradle.kts' line: 16

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.
It goes away when I remove the
browser()
or
nodeJs
line:
Copy code
plugins {
    kotlin("js")
    kotlin("plugin.serialization")
}


group = "nl.avwie.dom"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
}

kotlin {
    js(IR) {
        // browser() <- 1 of these breaks it
        // nodejs()
    }

    dependencies {

    }
}
My settings.gradle.kts:
Copy code
pluginManagement {
    plugins {
        kotlin("plugin.serialization") version "1.6.20" apply false
        kotlin("multiplatform") version "1.6.20" apply false
        kotlin("js") version "1.6.20" apply false
    }
}