Yassine Abou
04/23/2025, 9:48 PMCIO
engine)
2. After Removing CIO
Engine:`Uncaught runtime errors: ERROR wasm validation error: at offset 5557696: type mismatch: expression has type (ref null 1950) but expected externref`
3. Here is my setup:
my ktor version is 3.1.0
and
compose version is 1.7.3.
Dependencies (commonMain):
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.client.cio)
Koin DI Configuration:
single { Json { ignoreUnknownKeys = true isLenient ; = true encodeDefaults = false } }
// 2. HTTP Client Configuration
single<HttpClient> { HttpClient(CIO) { engine { requestTimeout = 0 }
install(ContentNegotiation) { json( json = get(), contentType = ContentType.Application.Json ) } }
here is the repository link for more context: https://github.com/yassineAbou/LLMSAleksei Tirman [JB]
04/24/2025, 7:21 AMืืืืื ืืืก
04/24/2025, 1:18 PMืืืืื ืืืก
04/24/2025, 1:20 PMYassine Abou
04/24/2025, 2:10 PMAleksei Tirman [JB]
04/24/2025, 3:15 PMktor-client-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }
composeApp/build.gradle.kts:
wasmJsMain.dependencies {
implementation(libs.ktor.client.js)
}
And remove an explicit CIO engine reference in the composeApp/src/commonMain/kotlin/org/yassineabou/playground/app/core/di/appModule.kt