martmists
09/16/2025, 1:18 AMenum class FakeApp(val title: String, val icon: @Composable () -> Unit, val content: @Composable () -> Unit) {
SYSTEM_INFO("System Info", ::SystemInfoIcon, ::SystemInfoApp),
ABOUT_ME("About Me", ::AboutIcon, ::AboutApp),
;
}
results in
Reference to function 'SystemInfoIcon' can not be evaluated: The call site provides 1 more value argument(s) than the function expects
IrLinkageError: Reference to function 'SystemInfoIcon' can not be evaluated: The call site provides 1 more value argument(s) than the function expects
How do I fix this?maarten ha
09/16/2025, 5:07 AMTanish Azad
09/18/2025, 5:52 PMColton Idle
09/18/2025, 7:27 PMRoger Kreienbühl
09/23/2025, 12:17 PMMake sure that every string that corresponds to a route starts with the # character to keep the data within URL fragments. Otherwise, when users copy and paste the URL, the browser will try to access a wrong endpoint instead of passing the control to your app.
This is only needed as long as I am not using rewrite rules on the server side like I would with a php site to hide perhaps index.php? In other words, can I remove the # if I use the right rewrite rules on the webserver?PHondogo
09/24/2025, 10:00 AMDhaval Shah
09/24/2025, 2:46 PMwasmJsBrowserDevelopmentRun, it start on port 8080.
After that, if we make any change to the code, I noticed that app is not updated.
So is there any way using which we can re run the app when we change the code? My current app takes around 4 seconds to re run using above command.
It is getting very frustrated to wait each time I make a small change to UI.
I tried using continuous mode of Gradle, but still it try to run compileDevelopmentExecutableKotlinWasmJs which takes significant amount of time to complete.
Can anyone share any info on this?Roger Kreienbühl
09/24/2025, 8:26 PMRok Oblak
09/25/2025, 12:04 PMfun Modifier.nextFocusOnTab(requester: () -> FocusRequester?): Modifier {
return onPreviewKeyEvent { event ->
if (event.key == Key.Tab && event.type == KeyEventType.KeyDown) {
requester()?.requestFocus()
true
} else {
false
}
}
}
It switches the focus to the requester (for example, the next input receives the caret) but actually the focus is requested by the browser's address bar, so the tab button becomes unusable.
A few versions back (not sure when) this worked fine, and tab would correctly focus on the next input, without browser forcing focus on the address bar.ursus
09/25/2025, 1:53 PMursus
09/25/2025, 10:15 PMursus
09/26/2025, 1:19 PM<http://kotlinlang.org|kotlinlang.org> use for frontend?ursus
09/27/2025, 7:42 PMmartmists
09/30/2025, 11:48 AMModule not found: Error: Can't resolve './skiko.mjs' in '/path/build/wasm/packages/project-name/kotlin'
but it worked fine a few days ago, any ideas what could be causing this?
The only things that really come to mind are that I've added Coil3 and Skydoves ColorPickermartmists
10/01/2025, 4:51 PMlomovskiy
10/06/2025, 9:57 AMpierbezuhoff
10/07/2025, 2:49 AMCanvasBasedWindow to ComposeViewport i found that after pressing Tab the canvas becomes focused and gains a distracting white outline (on chrome). Is there a way to apply CSS to the canvas? It's under shadow-root so normal stylesheets don't affect it.Saif
10/10/2025, 6:09 PMAlex Styl
10/11/2025, 4:10 AMRafael Diaz
10/11/2025, 5:39 PMLucas Pluvinage
10/15/2025, 11:44 AMAlex Styl
10/16/2025, 9:30 AMAlex Styl
10/16/2025, 11:42 PMdistribution block, the composeApp.js and many other files are not included in the output
wasmJs {
browser {
distribution {
val rootDirPath = project.rootDir.path
outputDirectory = File("$rootDirPath/dist/${project.name}") // <-
}
}
binaries.executable()
}Alex Styl
10/17/2025, 3:36 AMwasmJsBrowserDistribution to package my compose web wasm app
but the distribution contains 2 wasm files with weird names.
is that normal? I expected to have just one .wasm file with the name is specify in the distribution blockAlex Styl
10/17/2025, 5:16 AMSunil Kumar
10/24/2025, 4:06 AMwebMain as web main source set. so i was trying to use the WebElementView composable there in webMain , but its not resolving(not found). Its available in jsMain and wasmJsMain only.
Why its not available in webMain? most of the compose things which were available in wasmJs or js, should be available there in webMain, right?
or am i missing something?jean
10/24/2025, 6:09 AMKhangpv202
10/29/2025, 5:22 AM1.9.0 (from 1.8.2), it seems that the testing has stopped working. Specifically, the runComposeUiTest calls are no longer running. Has anyone else encountered this issue?Mario Andhika
10/30/2025, 4:22 AMAndrewStone
10/30/2025, 10:07 PMimport * as skiko from './skiko.mjs';
import * as joda from '@js-joda/core';
import { instantiate } from './composeApp.uninstantiated.mjs';
export async function initComposeApp()
{
if (skiko.ready)
{
await skiko.ready;
}
else if (typeof skiko.instantiate === "function")
{
// fallback for older skiko
await skiko.instantiate();
}
const { exports } = await instantiate({
'./skiko.mjs': skiko,
'@js-joda/core': joda
});
return exports;
}
So far it appears to be working. I figured I'd post this here, because I think anyone else who is trying to use their composeApp as a module will hit the same problem.