Hey! I can’t make my Compose Multiplatform app wor...
# koin
n
Hey! I can’t make my Compose Multiplatform app work in Js Browser because of an error that is throwing regarding to Koin. I’m not sure if it’s related to Koin, though. It says
Function 'KoinContext' can not be called: No function found for symbol
Koin version is
3.6.0-Beta2
WDYT? Thanks!
1
m
What version of compose and koin-compose you are using?
n
Koin
3.6.0-Beta2
and Compose
1.6.2
.
m
You should use koin 3.6.0-wasm-alpha2 because Compose 1.6 is not compatible with libraries built with Compose 1.5 on Web.
n
No luck 😕. Note I’m using JS and not Wasm, if that makes any difference.
m
Not only koin but koin compose as well.
n
I’m using the BOM
m
Ah ok, that's weird!
n
Do you reckon I should migrate to Wasm?
m
If your dependencies are compatible with Wasm, I think it's a good option.
I have a compose web/js project and I'm using Compose 1.6.1 and Koin 3.6.0-wasm-alpha2 and it's working fine.
👍 1
n
😞 Is that open sourced so I can take a look?
p
Same versions as Mohamed comments work for me too
kodee happy 1
n
Let me try with Compose 1.6.1 instead of 1.6.2.
m
Unfortunately it's not.
👍 1
gratitude thank you 1
But anyway I think that it's time to have a stable koin version compatible with Compose 1.6
n
3.6.0 will be, I guess!
👍 1
It was, actually, Kotlin 2.0 that was causing the error 😅 . This works: • Koin 3.6.0-wasm-alpha2 • Kotlin 1.9.23 • Compose 1.6.2 Too many blooding edges here.
Thanks for your help, guys 👍.
🙌 3
Hey @arnaud.giuliani, I think this is worth taking a look at. Koin can’t be used in Kotlin/JS with K2.
1
a
Hey @Nacho Ruiz Martin , yes if you see any issues let's try to solve it. Do you have something to reproduce?
n
Hum, I don’t have any public repo. Let me create a basic one and come back to you.
Wow, I can’t reproduce it anymore. I’m sorry for the false alarm. Neither in the reproducer project nor on mine. I don’t know what was it, maybe some specific combination of dependencies.
a
no worry, I prefer that we identify K2 issues soon 🙂
👍 1
gratitude thank you 1