Is there a compose web compiler working with Kotli...
# compose-web
s
Is there a compose web compiler working with Kotlin 1.7.20-RC? I did update my compose to:
Copy code
id("org.jetbrains.compose") version "1.2.0-beta02-dev795"
But after compiling, I get that error: `This version (1.3.0) of the Compose Compiler requires Kotlin version 1.7.10 but you appear to be using Kotlin version 1.7.20-RC which is not known to be compatible. Please fix your configuration (or
suppressKotlinVersionCompatibilityCheck
but don't say I didn't warn you!).` Thanks!
m
I haven't tested it yet with the latest version, but you can disable the version check by doing this: https://kotlinlang.slack.com/archives/C01F2HV7868/p1658587799469559
s
Thanks ! I’ll have a try 👍🏻
Unfortunately, the latest compose doesn’t work with Kotlin
1.7.20-RC
😅
Copy code
e: java.lang.NoSuchMethodError: 'boolean org.jetbrains.kotlin.backend.common.ir.IrUtilsKt.isFinalClass(org.jetbrains.kotlin.ir.declarations.IrClass)'
It’s not the first library that fails with the same kind of error. Regarding
IrClass
. They seems to have change a few things Ir Related in the compiler between 1.7.10 and 1.7.20 🤷🏻
h
It should be possible to replace the compiler with a newer one: https://github.com/JetBrains/compose-jb/issues/2108#issuecomment-1157978869. Here are the compiler versions: https://androidx.dev/storage/compose-compiler/repository But I never tried it
s
Thanks for the links! For sure I’ll test these
122 Views