Rohan Maity
01/04/2022, 5:19 AMcomposable
shared multiplatform module, inside that I have put some compose libraries as commonMain
Android app runs fine, but when I try to run ./gradlew jsBrowserRun
it fails to resolve all the compose dependenciesRohan Maity
01/04/2022, 5:21 AM* What went wrong:
Could not determine the dependencies of task ':composables:webPackageJson'.
> Could not resolve all dependencies for configuration ':composables:webNpm'.
> Could not resolve org.jetbrains.compose.foundation:foundation:1.0.1.
Required by:
project :composables
> No matching variant of org.jetbrains.compose.foundation:foundation:1.0.1 was found. The consumer was configured to find a usage of 'kotlin-runtime' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js', attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir' but:
- Variant 'debugApiElements-published' capability org.jetbrains.compose.foundation:foundation:1.0.1 declares a library:
- Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Variant 'debugRuntimeElements-published' capability org.jetbrains.compose.foundation:foundation:1.0.1 declares a runtime of a library:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Variant 'desktopApiElements-published' capability org.jetbrains.compose.foundation:foundation:1.0.1 declares a library:
- Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
Colton Idle
01/04/2022, 6:22 AMRohan Maity
01/04/2022, 6:23 AMRohan Maity
01/04/2022, 6:23 AMdarkmoon_uk
01/04/2022, 8:12 AM