```kotlin = 1.8.21 gradle = 7.5.1 cmp = 1.5.0-dev1...
# compose-web
p
Copy code
kotlin = 1.8.21
gradle = 7.5.1
cmp = 1.5.0-dev1114
Builds ok but crash at runtime whenever a TextField() composable runs
Copy code
kotlin = 1.9.0
gradle = 7.5.1
cmp = 1.5.0-dev1114
Does not build. I get bellow message:
"Unresolved reference: skiko"
Doesn’t seem any close to stable
a
You’re using dev builds. What would you expect?
🫠 1
😁 1
p
Definitely, I just report it, no pressure 🙂
a
But where does it say it is close to stable?
c
Some development builds are more-stable than others. I think it’s good to hear people’s experiences so we know what to expect at different points in the process. I’m about to start with
dev1114
, so I appreciate it.
👆 2
p
Arjan, It doesn't say it is close to stable anywhere, is personal opinion based.
o
Builds ok but crash at runtime whenever a TextField() composable runs
I was able to reproduce this. Adding
<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir>=false
in gradle.properties helps. Building a production distibution helps too. I'll report this to k/js team. UPD: here it's https://youtrack.jetbrains.com/issue/KT-60635/K-JS-Runtime-crash-in-development-build-with-incremental-compilation _
"Unresolved reference: skiko"
Do you call skiko APIs explicitly in your code? You have to add an explicit dependency implementation(skiko...). Soon it will be possible to use DSL to simplify it https://github.com/JetBrains/compose-multiplatform/pull/3370 Reason: https://youtrack.jetbrains.com/issue/KT-56158
🙌 1
p
Ah I see, good to know. In regards to the compilation error, no I am not using them explicitly. Just the onWasmReady() function. That's the one line causing the error.
o
I see. Adding implementation(compose.ui) should fix it.
p
I will check later, thanks for the help
👍 1
That was it, it compiles without problem after adding the dependency.