Hi Folks! I brought my Slack jetpack compose clone to Compose Multiplatform with Android and Desktop...
o
Hi Folks! I brought my Slack jetpack compose clone to Compose Multiplatform with Android and Desktop UI, still a wip but learning a lot here, thought of sharing here. https://github.com/Anmol92verma/SlackComposeMultiplatform
πŸ‘πŸ» 1
πŸ‘ 3
K 8
j
@oianmol I was able to run your app in Android, but not the Desktop version, I get the following error:
Copy code
Could not create instance for [Singleton:'dev.baseio.slackclone.unionboarding.GettingStartedVM']
Copy code
Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'
Any idea how to fix it?
o
Right, I am still working on that fix, need to figure out the Dispatchers.Main for desktop @John Aoussou Will keep you posted in a few hours
j
Thank you very much!
o
checkout now, take a pull, it’s fixed, it had something to do with Swing and main dispatcher @John Aoussou
j
Works fine πŸ™‡β€β™‚οΈ
m
Hey @Anmol Verma! I'm facing same issue on a project I'm working on. How did you fixed it?
a
I guess i added the swing version of coroutines
m
Cool! This my first use-case: run works perfectly fine with that. But when I try to package it into dmg, after installing it I got this error:
Module with Main dispatcher had failed to initialize
Is this also happening with your project?
a
I never packaged but runDistributable worked for me
m
Cool! I'll try it then! Thanks πŸ˜‰