https://kotlinlang.org logo
#compose-web
Title
# compose-web
ł

Łukasz Lendzion

02/28/2024, 5:46 PM
Hello, i dont have jsRun task: Whats wrong? Kotlin: 1.9.21
Copy code
@file:Suppress("OPT_IN_USAGE")
plugins {
    alias(libs.plugin.kotlin.multiplatform)
    alias(libs.plugins.composeJetbrains) // 1.5.11
}

kotlin {
    js(IR) {
        browser()
        binaries.library()
    }

    sourceSets {
        val jsMain by getting {
            dependencies {
                implementation(libs.kodein)
                implementation(libs.kotlinx.coroutines)
                implementation(compose.ui)
                implementation(compose.animation)
                implementation(libs.kamel)
                implementation(compose.foundation)
                implementation(compose.material3)
                @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
                implementation(compose.components.resources)

            }
        }
        val jsTest by getting {
            dependencies {
                implementation(libs.kotlin.test)
            }
        }
    }
}

compose.experimental {
    web.application {}
}
r

Robert Jaros

02/28/2024, 5:48 PM
Use
binaries.executable()
instead of
binaries.library()
ł

Łukasz Lendzion

02/28/2024, 5:50 PM
Oh right didnt see
Thanks
9 Views