Daniel Rampelt
12/21/2020, 9:47 PMnode >= 12.17
and my build is failing since it seems to be running with 12.16.1
. I use nvm on my computer for other node projects, and the only versions I have installed are 8.16.2
, 10.20.1
, 12.18.3
(default), and 14.8.0
so I have no idea where where 12.16.1
is coming fromVampire
12/21/2020, 10:17 PMVampire
12/21/2020, 10:19 PMkotlinNodeJs {
nodeVersion = '12.18.3'
}
Kotlin DSL:
configure<NodeJsRootExtension> {
nodeVersion = "12.18.3"
}
12.16.1 indeed is the default version usedDaniel Rampelt
12/22/2020, 3:23 PMExtension of type 'NodeJsRootExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, KotlinJsProjectExtension, KotlinTestsRegistry, DefaultArtifactPublicationSet, SourceSetContainer, ReportingExtension, JavaPluginExtension, JavaInstallationRegistry, JavaToolchainService]
Vampire
12/22/2020, 3:24 PMVampire
12/22/2020, 3:30 PMbrowser
it seems the same extension is present and can be configured.Daniel Rampelt
12/22/2020, 3:33 PMkotlin.js {
browser {
// See <https://kotlinlang.org/docs/reference/javascript-dce.html#known-issue-dce-and-ktor>
dceTask {
keep("ktor-ktor-io.\$\$importsForInline\$\$.<http://ktor-ktor-io.io.ktor.utils.io|ktor-ktor-io.io.ktor.utils.io>")
}
}
binaries.executable()
}
configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
nodeVersion = "12.18.3"
}
Vampire
12/22/2020, 3:35 PMDaniel Rampelt
12/22/2020, 3:37 PMrootProject
instead worked! Thanks for the help 🙂Vampire
12/22/2020, 3:39 PMVampire
12/22/2020, 3:39 PMcheck(project == project.rootProject) {
"NodeJsRootPlugin can be applied only to root project"
}
Daniel Rampelt
12/22/2020, 3:39 PMVampire
12/22/2020, 3:39 PM