Thread
#compose-web
    alexfacciorusso

    alexfacciorusso

    6 months ago
    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"
    Big Chungus

    Big Chungus

    6 months ago
    Compose plugin only works for mpp projects (even if you only target js)
    alexfacciorusso

    alexfacciorusso

    6 months ago
    I see. So if I want to use compose I need to setup a mpp project with only a js target
    Big Chungus

    Big Chungus

    6 months ago
    Correct
    alexfacciorusso

    alexfacciorusso

    6 months ago
    do we know if there are plans to support non-mpp projects with compose? Or is there some sort of architectural constraint?
    j

    jw

    6 months ago
    This is incorrect. Support for JS plugin was merged. See https://github.com/JetBrains/compose-jb/issues/1821
    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
    alexfacciorusso

    alexfacciorusso

    6 months ago
    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