Any idea what's wrong with the module definition `...
# koin
s
Any idea what's wrong with the module definition
Copy code
module {
    singleOf(::CsvExporter) { bind<Exporter>() }
    singleOf(::ExcelExporter) { bind<Exporter>() }
}
which throws
org.koin.core.error.DefinitionOverrideException: Already existing definition for [Singleton:'dev.schuberth.stan.exporters.ExcelExporter',binds:dev.schuberth.stan.exporters.Exporter] at dev.schuberth.stan.exporters.Exporter::_root_
? The alternative syntax
Copy code
module {
    singleOf(::CsvExporter) bind Exporter::class
    singleOf(::ExcelExporter) bind Exporter::class
}
does not throw and works just fine.
a
arf, too bad. Can you raise an issue? It’s something I can quicky fix for Koin core 3.3
s
a
Great 👍