rebok
02/25/2024, 9:33 PMcaught TypeError: org_jetbrains_skia_Paint__1nMake is not a function
at Module.org_jetbrains_skia_Paint__1nMake (skiko.js:1:176470)
at Paint_init_$Init$_0 (Paint.kt:25:27)
at Paint_init_$Create$_0 (skiko-kjs.js:9594:12)
at new SkiaBackedPaint (SkiaBackedPaint.skiko.kt:33:61)
at Paint_0 (SkiaBackedPaint.skiko.kt:25:29)
at new Companion_17 (Standard.kt:158:3775)
at Companion_getInstance_41 (compose-multiplatform-core-compose-ui-ui.js:22588:7)
at new InnerNodeCoordinator (InnerNodeCoordinator.kt:56:1)
at new NodeChain (NodeChain.kt:36:37)
at new LayoutNode (LayoutNode.kt:780:26)
rebok
02/26/2024, 3:52 PMjsBrowserDistribution
the process seems to be running forever
and not finishing, it's stuck on jsBrowserProductionWebpack
and i get an error before the task started, when jsProductionExecutableCompileSync was running:
Cannot rewrite paths in JavaScript source maps: Too many sources or format is not supported
jw
02/27/2024, 6:21 PMŁukasz Lendzion
02/28/2024, 5:46 PM@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 {}
}
Pablichjenkov
02/29/2024, 6:18 AM1.6.0
fixed compose-js
cursor transparent issue in TextField 👏eygraber
02/29/2024, 6:57 PMJohn O'Reilly
03/02/2024, 9:22 AMYogeshvu
03/02/2024, 12:38 PMsoufianehamama9
03/02/2024, 9:00 PMAnmol Verma
03/03/2024, 7:47 AMwindow.crypto
via import kotlinx.browser.window
within my kotlin/js project but it doesn't see to work.
anyone ?
Is there a separate dependency that needs to be imported ?Akram Bensalem
03/03/2024, 3:20 PMimport org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.jetbrainsCompose)
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "17"
}
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
moduleName = "designsystem"
browser {}
binaries.library()
}
sourceSets {
commonMain.dependencies {
implementation(compose.runtime)
implementation(compose.foundation)
implementation(compose.material3)
implementation(compose.ui)
implementation(compose.materialIconsExtended)
implementation(compose.components.resources)
}
}
}
rcd27
03/04/2024, 5:51 AMmohamed rejeb
03/04/2024, 6:47 AMcalf-file-picker
to pick files with Compose Web for both JS and WASM
Live demo: https://calf-library.netlify.app/
Full changelog: https://github.com/MohamedRejeb/Calf/releases/tag/v0.4.0Slackbot
03/06/2024, 9:29 AMAkram Bensalem
03/06/2024, 1:01 PM"localhist:8080/"
when running `"wasmJsBrowserDevelopmentRun`" ( that will help to control the navigation inside the app).
Meanwhile, it seems that the adding 'webpack.config.d' with the javascript doesn't work at all ?
Even when in the js file I add a simple print in console ?
Do you know how to fix this ?Łukasz Lendzion
03/06/2024, 1:46 PMeygraber
03/07/2024, 4:25 AMconfig.devServer.historyApiFallback = {
rewrites: [
{ from: /.*my-module.wasm/, to: '/my-module.wasm' },
]
}
CLOVIS
03/07/2024, 8:12 PMLuca
03/08/2024, 1:48 AMLuca
03/10/2024, 7:37 AMcompose.html
not available for wasmJs?Yan Pujante
03/10/2024, 5:46 PMErik
03/13/2024, 8:24 AMDaniele B
03/13/2024, 1:26 PMMd Sadique Inam
03/13/2024, 1:26 PMNthily
03/15/2024, 8:10 PMMd Sadique Inam
03/16/2024, 1:40 PMAJ Alt
03/16/2024, 4:32 PMImageBitmap
?
Even the simplest implementation causes an interal error "Unable to obtain org.jetbrains.skia.Image" on wasm:
val orig = imageResource(Res.drawable.image)
val bmp = object : ImageBitmap by orig {}
Image(bmp, null)
Wondering if this is a bug or if it's just intentionally not supported.Yan Pujante
03/16/2024, 6:31 PMDavid Herman
03/17/2024, 3:05 AMMantas Varnagiris
03/17/2024, 8:04 PM