Joffrey
07/25/2019, 3:00 PMCould not determine the dependencies of task ':sw-ui-kt:packageJson'.
> project ':sw-client' is not configured for JS usage
Where sw-client is a Kotlin multiplatform subproject, and sw-ui-kt is a Kotlin/JS subproject depending on `sw-client`:
kotlin {
target {
browser()
}
sourceSets {
main {
dependencies {
implementation(kotlin("stdlib-js"))
implementation(project(":sw-client"))
//...
Is it normal not to be able to depend on a multiplatform project from a JS one?
Is there a way to declare the local dependency to the JS part of the multiplatform project?altavir
07/25/2019, 7:40 PMJoffrey
07/25/2019, 10:11 PMaltavir
07/26/2019, 8:54 AMJoffrey
07/26/2019, 8:54 AMJoffrey
07/26/2019, 8:54 AMJoffrey
07/26/2019, 8:55 AMaltavir
07/26/2019, 8:57 AMJoffrey
07/26/2019, 8:58 AMJoffrey
07/26/2019, 8:59 AMjs() as a target for MPPaltavir
07/26/2019, 8:59 AMJoffrey
07/26/2019, 9:00 AMkotlin {
jvm()
js() // <= should I change this?
sourceSets {
// all source sets (common, jvm, js) and deps
}altavir
07/26/2019, 9:01 AMJoffrey
07/26/2019, 9:01 AMbrowser() without success. Will try that, thanks a lot.Joffrey
07/26/2019, 9:08 AMjs() by js { browser() } in all transitive (but local) Kotlin/MPP dependencies of my kotlin/js UI subprojectJoffrey
07/26/2019, 9:16 AMtarget from Kotlin/JS that needs to be replaced by js in MPP, but the browser() part can stay the same.