https://kotlinlang.org logo
#koin
Title
# koin
c

Ciaran Sloan

11/30/2023, 11:04 AM
Im having a strange issue with koin annotations in a multi module project. Wondering if anyone has experience the same? Heres the use case: I have an
abstract
class, lets call it
BaseViewModel
and its extended in multiple different modules -
modulea/ModuleAViewModel
moduleb/ModuleBViewModel
When I annotate each of these implementations, the codegen is working great, but when I run the app I get the error
Type org.koin.ksp.generated.BaseViewModel$$ExternalSynthetic$Condy0 is defined multiple times
. Has anyone come across this, or have ideas on where I might be going wrong?
this only happens when I enable the experimental flag for compile time safety. Perhaps an issue there yet to be resolved 🤔 I'll open a ticket on the repo