https://kotlinlang.org logo
#compose-web
Title
# compose-web
j

Justin Salér

09/21/2023, 8:05 AM
Hey all. After adding an intermediate source set
jsWasmMain
, i get the following error when running the
build
gradle task:
Copy code
Could not find /app/build/kotlinTransformedMetadataLibraries/jsWasmMain/org.jetbrains.skiko-skiko-0.0.7.68-wasm03-jsWasmMain-kzPDRg.klib" in [Library/Application Support/kotlin/daemon]
For context I am using a Mac with Intel. The gradle tasks
run
and
jvmJar
still works as before… Anyone have a clue what to do?
o

Oleksandr Karpovich [JB]

09/21/2023, 10:44 AM
the skiko metadata for jsWasmMain was explicitly disabled here https://github.com/JetBrains/skiko/blob/wasm-main-1920/skiko/build.gradle.kts#L1573 what task does fail in your case? you may disable
compileJsWasmMainKotlinMetadata
in your project too. __ The reason is that (afaik) there’s no common jsWasm source set in the stdlib. Therefore we disable the task. Otherwise it fails to complete.
j

Justin Salér

09/21/2023, 1:28 PM
Thank you. I added the same code to my project and it worked.
compileJsWasmMainKotlinMetadata
was the culprit! The magic of gradle 😄 .
👍 1
3 Views