1. Hi <@UHAJKUSTU> , i have an existing project. T...
# decompose
s
1. Hi @Arkadii Ivanov , i have an existing project. Today i upgraded some dependencies and now its not running for web js, for all others its working fine. 2. I tried both versions of decompose experimental 2.2.2 and 2.0.0 . Getting this error:
Copy code
Function 'subscribeAsState' can not be called: No function found for symbol 'com.arkivanov.decompose.extensions.compose.jetbrains/subscribeAsState|subscribeAsState@com.arkivanov.decompose.value.Value<0:0>(androidx.compose.runtime.SnapshotMutationPolicy<0:0>?;androidx.compose.runtime.Composer?;kotlin.Int;kotlin.Int){0§<kotlin.Any>}[0]'""IrLinkageError"
a
I'm not sure, but it might be either a bug in Kotlin/JS compiler, or maybe somehow you got Decompose v3.x directly or transitively (subscribeAsState has been moved to another package).
s
These are the versions:
Copy code
decompose.version.experimental=2.0.0-compose-experimental
essenty.version=1.1.0
Will it work with compose multiplatform 1.6.2 and kotlin 1.9.23? ANyway i tried these versions as well, still error was there:
Copy code
decompose.version.experimental=2.2.2-compose-experimental
essenty.version=1.3.0
a
It might also be an issue with incompatible version of Compose, since Compose for Web is still experimental. It's advised to use the same versions of dependencies, as outlined in Decompose release notes. 2.2.3: https://github.com/arkivanov/Decompose/releases/tag/2.2.3 2.2.3: https://github.com/arkivanov/Decompose/releases/tag/2.2.2 2.2.0: https://github.com/arkivanov/Decompose/releases/tag/2.2.0
s
Yeah, actually, i tried with beta version 3.0.0-beta01 for using with compose 1.6.1, its working now. Having issues with some other libraries now though, but this one is working. thnx
👍 1