Hi team, anyone face this issue where we're sharin...
# koin
n
Hi team, anyone face this issue where we're sharing the same viewModel and it throws an error that it couldn't create the class
Copy code
override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        startKoin {
            androidContext(this@MainActivity)
            modules(appModule)
        }

        setContent {
            Navigation()
        }
    }
}

val appModule = module {
    single { AppwriteClient(androidContext()) }
    single<SharedPreferences> {
        androidContext().getSharedPreferences("my_app_prefs", Context.MODE_PRIVATE)
    }

    viewModel { AuthViewModel(get(), get()) }
}
Caused by: org.koin.core.error.NoBeanDefFoundException: No definition found for class:'io.appwrite.Client' q:''. Check your definitions!
Is my definition incorrect for appwrite>
No worries guys I resolved this issue as usual my fault had the similar naming of class so imported the wrong one in authviewModel