Derek Ellis
06/12/2022, 8:33 PMjava.lang.IncompatibleClassChangeError: Found class org.jetbrains.kotlin.ir.types.IrType, but interface was expected
at androidx.compose.compiler.plugins.kotlin.lower.decoys.WrapNotInlineableComposableLambdasForJs$wrapComposableLambdasInCall$mappedArguments$2.invoke(WrapNotInlineableComposableLambdasForJs.kt:142)
at androidx.compose.compiler.plugins.kotlin.lower.decoys.WrapNotInlineableComposableLambdasForJs$wrapComposableLambdasInCall$mappedArguments$2.invoke(WrapNotInlineableComposableLambdasForJs.kt:135)
etc...
Oleksandr Karpovich [JB]
06/13/2022, 9:41 AMOleksandr Karpovich [JB]
06/13/2022, 10:03 AMDerek Ellis
06/13/2022, 12:28 PMDerek Ellis
06/13/2022, 12:29 PMDerek Ellis
06/13/2022, 12:32 PMFATAL ERROR: Could not find "...\.gradle\caches\modules-2\files-2.1\app.cash.sqldelight\sqljs-driver\2.0.0-SNAPSHOT\4f3b183e3f1c1b4797f9f186dc1ad2f60f0d87f5\sqljs-driver-2.0.0-SNAPSHOT.klib"
I checked and this file does exist, so I don't know why it gives this error.
The sqljs-driver module depends on the Kotlin 1.7.0 stdlib so I wonder if that's why?Oleksandr Karpovich [JB]
06/13/2022, 3:22 PMDerek Ellis
06/13/2022, 3:58 PMkotlin.NotImplementedError: An operation is not implemented: org.jetbrains.kotlin.ir.types.impl.IrDynamicTypeImpl@2712046a
at org.jetbrains.kotlin.ir.descriptors.IrBasedDescriptorsKt.toIrBasedKotlinType(IrBasedDescriptors.kt:1137)
at org.jetbrains.kotlin.ir.descriptors.IrBasedDescriptorsKt.makeKotlinType(IrBasedDescriptors.kt:1151)
at org.jetbrains.kotlin.ir.descriptors.IrBasedDescriptorsKt.toIrBasedKotlinType(IrBasedDescriptors.kt:1136)
...
If I upgrade Kotlin, ksp, and compose for 1.7.0 I get this error:
java.lang.AssertionError: Unexpected type: org.jetbrains.kotlin.ir.types.impl.IrDynamicTypeImpl@3c59468a = dynamic
at org.jetbrains.kotlin.ir.descriptors.IrBasedDescriptorsKt.toIrBasedKotlinType(IrBasedDescriptors.kt:1142)
at org.jetbrains.kotlin.ir.descriptors.IrBasedDescriptorsKt.makeKotlinType(IrBasedDescriptors.kt:1157)
at org.jetbrains.kotlin.ir.descriptors.IrBasedDescriptorsKt.toIrBasedKotlinType(IrBasedDescriptors.kt:1134)
...
Oleksandr Karpovich [JB]
06/14/2022, 4:30 PMDerek Ellis
06/22/2022, 8:17 PMArray<dynamic>
parameter in an @Composable
function
@Composable
fun Example(array: Array<dynamic>) {}