Hi I am using in CMP/KMP project ```import org.k...
# koin
q
Hi I am using in CMP/KMP project
Copy code
import org.koin.core.module.dsl.viewModelOf
viewModelOf<MyViewModel>(::MyViewModel)
the
viewModelOf
is not resolved at my side my dependeceies are
Copy code
koin-compose = { module = "io.insert-koin:koin-compose", version.ref = "koin" }
koin-compose-viewmodel = { module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin" }
koin-compose-viewmodel-navigation = { module = "io.insert-koin:koin-compose-viewmodel-navigation", version.ref = "koin" }

koin = "4.0.2"
1
p
You should use it simple like this
viewModelOf(::MyViewModel)
Please also verify that in the file the
MyViewModel
has the import sometimes is not working nicely.
🙌 2