Anyone currently using compose preview with Intell...
# compose-web
w
Anyone currently using compose preview with IntelliJ EAP ? I'm getting
Could not resolve org.jetbrains.compose.ui:ui-tooling-preview:1.8.0-alpha03. ... No matching variant
when trying to run the wasm app.. No idea how to bypass this without commenting out
compose.preview
and
compose.uiTooling
.. which will then cause compose preview to stop working..
t
Getting the same with iOS (1.8.0-beta01), so I suspect some sort of build issue for CMP.
w
I managed to exclude the
compose.preview
and
compose.uiTooling
when running wasmjs I use this to run my wasmJs
:composeApp:wasmJsBrowserDevelopmentRun -PisWasm=true
then in my build.gradle
Copy code
if (!project.hasProperty("isWasm")) {
    implementation(compose.preview)
    implementation(compose.uiTooling)
}
not sure if it will work for others.. at least my preview are still working and i can run the webapp
t
that's cool, but i am hoping that is not really required.
w
yeah, but no idea when those two library will start targeting wasm.. this is just one of the possible ways to move on for now 😬