GarouDan
02/27/2019, 2:00 PMUncaught Error: Error loading module 'common'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'common'.
I could see that in my main.bundle.js
generated file, indeed the "./common.js"
is being required earlier than the "./kotlin.js"
module. I tried to change the dependencies order in my build.gradle.kts
file but it didn’t solve the problem.
Does someone knows how can we fix this?spand
02/27/2019, 2:02 PMGarouDan
02/27/2019, 2:04 PMGarouDan
02/27/2019, 2:09 PMspand
02/27/2019, 2:21 PMspand
02/27/2019, 2:23 PMkotlin-dce-js
gradle plugin ?GarouDan
02/27/2019, 2:24 PMspand
02/27/2019, 2:26 PMspand
02/27/2019, 2:29 PMGarouDan
02/27/2019, 3:33 PMjs("js") {
configure(listOf(compilations["main"], compilations["test"])) {
tasks.getByName(compileKotlinTaskName) {
kotlinOptions {
// languageVersion = "1.3"
metaInfo = true
// outputFile = "${project.buildDir.path}/js/${project.name}.js"
sourceMap = true
sourceMapEmbedSources = "always"
moduleKind = "umd"
}
}
}
configure(listOf(compilations["main"])) {
tasks.getByName(compileKotlinTaskName) {
kotlinOptions {
main = "call"
}
}
}
}