Mike Digman
05/09/2023, 3:21 AMLazyVerticalStaggeredGrid
available for the canvas target? I'd imagine so because it's in foundation. I used it on a desktop jvm target no problem. However, I'm getting messy dependency issues when attempting to build for canvas.Module "org.jetbrains.compose.foundation:foundation" has a reference to symbol [ File '/mnt/agent/work/172e546b22c60d2b/compose/frameworks/support/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/staggeredgrid/LazyStaggeredGridMeasureResult.kt' <- androidx.compose.foundation.lazy.staggeredgrid/LazyStaggeredGridPositionedItem|null[0] ]. Neither the module itself nor its dependencies contain such declaration.
This could happen if the required dependency is missing in the project. Or if there is a dependency of "org.jetbrains.compose.foundation:foundation" that has a different version in the project than the version that "org.jetbrains.compose.foundation:foundation" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.
Oleksandr Karpovich [JB]
05/09/2023, 10:22 AMMike Digman
05/09/2023, 3:43 PMkotlin {
js(IR) {
binaries.executable()
}
}
compose.experimental {
web.application {}
}
Oleksandr Karpovich [JB]
05/09/2023, 3:45 PMMike Digman
05/09/2023, 3:45 PM@OptIn(ExperimentalFoundationApi::class)
@Composable fun LazyBuildFailureTest() {
LazyVerticalStaggeredGrid(StaggeredGridCells.Adaptive(100.dp)) {
item {
Box(Modifier.background(color = Color.Blue).size(100.dp))
}
}
}
Oleksandr Karpovich [JB]
05/09/2023, 3:57 PMMike Digman
05/09/2023, 4:11 PM