I'm trying to use the wasm example for Compose, bu...
# compose
m
I'm trying to use the wasm example for Compose, but running into an issue resolving dependencies:
Copy code
:example-project:wasmMain: Could not resolve org.jetbrains.kotlinx:atomicfu:0.18.5.
Required by:
    project :example-project > org.jetbrains.compose.runtime:runtime:1.4.0-dev-wasm05 > org.jetbrains.compose.runtime:runtime-wasm:1.4.0-dev-wasm05
    project :example-project > org.jetbrains.compose.ui:ui:1.4.0-dev-wasm05 > org.jetbrains.compose.ui:ui-wasm:1.4.0-dev-wasm05
    project :example-project > org.jetbrains.compose.ui:ui:1.4.0-dev-wasm05 > org.jetbrains.compose.ui:ui-wasm:1.4.0-dev-wasm05 > org.jetbrains.compose.ui:ui-text:1.4.0-dev-wasm05 > org.jetbrains.compose.ui:ui-text-wasm:1.4.0-dev-wasm05
and the same with
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0-Beta
,
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0-Beta-wasm0
,
org.jetbrains.kotlinx:atomicfu:0.18.5-wasm0
With defined repositories
mavenCentral
,
google
,
<https://maven.pkg.jetbrains.space/public/p/compose/dev>
, and
<https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental>
e
#compose-web Try
wasm08
but that comes with other dependency requirements. Check out https://github.com/eygraber/compose-color-picker/commit/0d4adbcdfcc125a7ca21aeca003b8d9329ace53a
m
The problem with wasm08 is that it seems to depend on Kotlin 1.9 (as well as various other "unstable" versions), while the majority of code I plan to use it with uses 1.8.20.
e
There's a high likelihood that something will be broken with 1.8.20 with WASM and Compose even if you get it to build. I'm not using it in production yet, so I was fine with using Kotlin 1.9.0-RC and all of the experimental wasm artifacts for the other libraries