Unable to use viewModel with Koin (ViewModel error from composable)
sodiqOladeni opened this issue · comments
SODIQ OGUNYEIWA commented
I got this compile time error after adding viewModel()
to the composable, this declaration in composable.
- viewModel: EmailInputScreenViewModel = viewModel()
Cannot access 'dev.icerock.moko.mvvm.viewmodel.ViewModel' which is a supertype of 'com.apppackage.viewmodel.ftue.EmailInputScreenViewModel'. Check your module classpath for missing or conflicting dependencies
Is there any sample project that uses Moko-Viewmodel + Koin + Compose, Is there any other thind
Aleksey Mikhailov commented
change implementation
to api