Compilation fails for the JS target for the common module with the error:
/common/build/generated/locolaser/js/ru/pocketbyte/locolaser/kmpp/JsStringRepository.kt: (7, 8): Unresolved reference: i18next
build.gradle.kts:
plugins {
id("ru.pocketbyte.locolaser")
kotlin("multiplatform")
}
kotlin {
js(IR) {
browser {
binaries.executable()
}
}
sourceSets {
val commonMain by getting {
this.kotlin.srcDir("./build/generated/locolaser/common/")
dependencies {
api ("org.jetbrains.kotlin:kotlin-stdlib-common" )
}
}
val jsMain by getting {
this.kotlin.srcDirs("./build/generated/locolaser/js/")
dependencies {
api ("org.jetbrains.kotlin:kotlin-stdlib" )
api ("org.jetbrains.kotlin:kotlin-stdlib-js" )
api ("ru.pocketbyte.locolaser:i18next-externals:1.0" )
}
}
}
}
dependencies {
localize ("ru.pocketbyte.locolaser:resource-kotlin-mpp:2.2.1")
localize ("ru.pocketbyte.locolaser:resource-json:2.2.1")
}
Compilation fails for the JS target for the common module with the error: /common/build/generated/locolaser/js/ru/pocketbyte/locolaser/kmpp/JsStringRepository.kt: (7, 8): Unresolved reference: i18next
build.gradle.kts: