Hi Team I am trying to make web app WASM using mul...
# multiplatform
m
Hi Team I am trying to make web app WASM using multiplatform . I tried adding dependencies for ktor client, getting error . Can anyone help . I just created a fresh project from KMM wizard for only web.
j
You need to pull in wasm specific dependencies for Ktor right now....example of doing that in https://github.com/joreilly/ClimateTraceKMP
🙌 1
m
thank you let me try
j
following for example is needed
Copy code
maven("<https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental>")
and using
3.0.0-wasm2
version for Ktor
m
this worked thanks what about image loading i checked coil but its not working
t
Im getting this error, when trying to use
2.0.0-Beta3
version, how can i fix this
Copy code
Compose Multiplatform 1.6.1 doesn't support Kotlin 2.0.0-Beta3
j
see following in that ClimateTrace project
Copy code
compose {
    kotlinCompilerPlugin.set(libs.versions.compose.compiler)
    kotlinCompilerPluginArgs.add("suppressKotlinVersionCompatibilityCheck=${libs.versions.kotlin}")
}
🙌 1
m
@John O'Reilly i was trying github workflow to publish changes to github pages tried the workflow from ClimateTrace . It is failing
Copy code
- name: Setup Java
  uses: actions/setup-java@v4
  with:
    java-version: 17
Error: Input required and not supplied: distribution
m
Getting this error while uploading artifact
@Stefan Oltmann
s
I suggest you take a working project like ClimateTraceKMP as template and make sure it works for you. If not, ask the author about it. If it works you start to change it.
I don’t know what the KMM wizard created for you. That changes all the time and may be outdated. Use something that exists and works and change that.
And please read the code of conduct. You are not supposed to ping people. Thank you. https://kotlinlang.org/community/slackccugl.html#basic-usage-guidelines
m
ok thanks