Slackbot
05/26/2025, 4:06 AMCarter
05/26/2025, 9:49 AMrunComposeUiTest
to a test case, I get an exception with `NotImplementedError: Implemented as intrinsic`for Kotlin 2.1.21 and Compose 1.8.1 with the WASM target, while the desktop target is fine.
@Test
fun composeTest() = runComposeUiTest {
// throws NotImplementedError: Implemented as intrinsic for WASM target
}
Barry Fawthrop
05/29/2025, 3:34 PMadjorno
05/31/2025, 9:45 AMlocalhost:8080 -> to open index.html with the list of articles
localhost:8080/1234 -> to open the 1234 article
and in prod
mydomain.com/blog -> to open index.html with the list of articles
mydomain.com/blog/1234 -> to open the 1234 article
I am expecting that it should be somehow achievable without Kotlin to know about production /blog
segment.
I tried this one in index.html
but it did not help in prod.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Blog</title>
<base href="/blog/">
</head>
<body>
<div id="root"></div>
<script src="./blog.js"></script>
</body>
</html>
I am getting blog.js:1 Failed to load resource: the server responded with a status of 404 ()
Could anybody help?Thierry Kh
06/01/2025, 10:34 AMAlex Styl
06/02/2025, 3:12 PMprudhvi reddy
06/03/2025, 2:55 AMPreetam
06/03/2025, 4:00 AMprofessionalvibecoder
06/03/2025, 9:05 AMBrahh
06/08/2025, 1:13 PMYassine Abou
06/09/2025, 3:07 AM"Calls to 'js(code)' must be a single expression inside a top-level function body or a property initializer"
My code tries to load a WebWorker with
js()
inside a Koin module, but it’s not allowed. Here’s the problem:
actual val platformModule = module {
single {
val driver = WebWorkerDriver(
Worker(
js("""new URL("@cashapp/sqldelight-sqljs-worker/sqljs.worker.js", import.meta.url)""") // ❌ Error here
)
)
LlmsDatabaseWrapper(driver, LlmsDatabase(driver))
}
}
how could I fix this issue?Yassine Abou
06/10/2025, 1:28 PM{
"message":"Uncaught SyntaxError: Unexpected token '<'",
"type":"error"
} isTrusted,true
kotlinx.coroutines.error_$external_fun @ composeApp.uninstantiated.mjs:189
Is this primarily a SQLDelight configuration issue or a coroutines uncaught exception? Relevant Code Snippets:
Database Configuration:
private val workerScriptUrl: String =
js("""new URL("@cashapp/sqldelight-sqljs-worker/sqljs.worker.js", import.meta.url)""")
actual val platformModule = module {
single {
val driver = WebWorkerDriver(Worker(workerScriptUrl)).apply {
enableForeignKeys()
}
LlmsDatabaseWrapper(driver, LlmsDatabase(driver))
}
}
Webpack Configuration (sqljs.js)
config.resolve = {
fallback: {
fs: false,
path: false,
crypto: false,
}
};
const CopyWebpackPlugin = require('copy-webpack-plugin');
config.plugins.push(
new CopyWebpackPlugin({
patterns: [
'../../node_modules/sql.js/dist/sql-wasm.wasm'
]
})
);
for more context. check out this repository link: https://github.com/yassineAbou/LLMSAlex Styl
06/11/2025, 1:59 PMAlex Styl
06/11/2025, 2:12 PMThierry Kh
06/11/2025, 10:26 PMRoberto Fernandez Montero
06/13/2025, 11:20 AM13:13:24: Executing 'jsBrowserDevelopmentRun'
Ends in an error:
e: org.jetbrains.kotlin.util.FileAnalysisException: While analysing /Users/user/branches/Binshelve/composeApp/build/generated/compose/resourceGenerator/kotlin/commonResClass/binshelve/composeapp/generated/resources/Res.kt:17:1: org.jetbrains.kotlin.utils.exceptions.KotlinIllegalArgumentExceptionWithAttachments: Exception in declaration checkers
Execution failed for task ':composeApp:compileKotlinJs'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Internal compiler error. See log for more details
Yassine Abou
06/16/2025, 1:36 AMCatherine
06/17/2025, 1:26 PMMario Andhika
06/18/2025, 8:03 AMEric
06/19/2025, 10:47 AMconst config = {
async rewrites() {
return [
{
source: '/api/:path*',
destination: '<http://localhost:4000/:path*>' // Proxy to Backend
}
]
}
};
darkmoon_uk
06/19/2025, 3:12 PMVivek Modi
06/19/2025, 10:13 PMEric
06/20/2025, 9:43 AMSergio Moral
06/20/2025, 3:12 PMVlad Cipariu
06/30/2025, 8:11 AMKhangpv202
07/01/2025, 6:53 AMDevkinandan Pandey
07/11/2025, 5:39 AMMatthew David
07/11/2025, 8:34 PMPavel Shnyakin
07/13/2025, 9:01 PMSumit Jha
07/14/2025, 4:02 PM