I try to do a multiplatform project with JVM serve...
# multiplatform
a
I try to do a multiplatform project with JVM server, Android, iOS and JS client. There is a clientCommonMain, that dependsOn commonMain, and the 3 clients depend on clientCommonMain. The expected class Sample has an actual declaration in clientCommonMain and the IDE doesn't complain about missing actual declarations. However, the Task appcompileKotlinJs FAILED:
Expected class 'Sample' has no actual declaration in module <Test-app> for JS
Copy code
clientCommonMain {
    dependsOn commonMain
}
clientCommonTest {
    dependsOn commonTest
}
jsMain {
    dependsOn clientCommonMain
    dependencies {
        implementation kotlin('stdlib-js')
    }
}
jsTest {
    dependsOn clientCommonTest
    dependencies {
        implementation kotlin('test-js')
    }
}
How is that possible?