https://kotlinlang.org logo
#webassembly
Title
# webassembly
r

romainbsl

11/30/2023, 9:43 AM
Hello! Is there a plan to make a build of Compose Wasm compatible with jb-comppse
1.5.11
?
o

Oleksandr Karpovich [JB]

11/30/2023, 10:31 AM
1.5.11 had some fixes for iOS mostly - https://github.com/JetBrains/compose-multiplatform/releases/tag/v1.5.11 1.5.10-dev-wasm3 should be compatible with it in terms of Compose for Web features/fixes. Do you face some issue?
r

romainbsl

11/30/2023, 10:42 AM
Yes but
1.5.11
is also built onto by
1.9.21
and can’t moving from
1.9.20
to
1.9.21
with any
1.5.10-dev-wasm-*
builds
Compose Multiplatform 1.5.10-dev-wasm03 doesn't support Kotlin 1.9.21.
context: moving my KMP library to
1.9.21
If needed I will disable Compose WasmJs experimental feature in this release
o

Oleksandr Karpovich [JB]

11/30/2023, 10:51 AM
I see. We'll release a version that supports 1.9.21 out of a box around next week. In the meantime, the compiler version can be set manually in build.gradle.kts (all of them where compose is applied):
Copy code
compose {
     kotlinCompilerPlugin.set("1.5.4")
 }
It should work with 1.9.21
r

romainbsl

11/30/2023, 11:00 AM
I have the following then
Copy code
No matching variant of org.jetbrains.compose.runtime:runtime:1.5.11 was found. The consumer was configured to find a library for use during 'kotlin-runtime', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'wasm', attribute 'org.jetbrains.kotlin.wasm.target' with value 'js', attribute 'org.jetbrains.kotlin.js.public.package.json' with value 'public-package-json' but:
I will disable WasmJs for compose project and wait the next release
o

Oleksandr Karpovich [JB]

11/30/2023, 11:02 AM
it seems you tried to use 1.5.11 version. you can use 1.5.10-dev-wasm3 +
Copy code
compose {
     kotlinCompilerPlugin.set("1.5.4")
 }
with kotlin 1.9.21
r

romainbsl

11/30/2023, 12:30 PM
Oh shoot I forgot to rollback to 1.5.10-dev-wasm3. It works, thank you
👍 1
26 Views