Hi all! I am trying to use compose web with a nor...
# compose-web
a
Hi all! I am trying to use compose web with a normal kotlin-js project (e.g. non-multiplatform). Gradle, though, keeps failing telling me it "can't find the compose runtime reference"
b
Compose plugin only works for mpp projects (even if you only target js)
a
I see. So if I want to use compose I need to setup a mpp project with only a js target
b
Correct
a
do we know if there are plans to support non-mpp projects with compose? Or is there some sort of architectural constraint?
j
This is incorrect. Support for JS plugin was merged. See https://github.com/JetBrains/compose-jb/issues/1821
👍 2
It requires the 1.2.0-alpha01 dev build, though
Using a newer version of the compiler/gradle plugin should work fine with the current stable runtime and other libraries, though
a
Okay that makes completely sense, I'm gonna try that version and I'm sure it's gonna work. Potentially for this one I might just switch to mpp for the client project and then make it single-platform whenever 1.2.0 stable or at least beta will be released
Thank you both @Big Chungus and @jw