添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
想旅行的熊猫  ·  Forcing ...·  3 月前    · 
灰常酷的炒面  ·  cmake build error ...·  7 月前    · 
个性的拐杖  ·  统信UOS - 墨天轮百科·  7 月前    · 

Cannot invoke "org.koin.core.module.Module.getIncludedModules()" because "it" is null #1702

Closed
@yektasarioglu

Description

I'm getting;
Cannot invoke "org.koin.core.module.Module.getIncludedModules()" because "it" is null

To Reproduce

fun Application.configureKoin() {
    install(Koin) {
        slf4jLogger()
        modules(dataModule, domainModule)
val dataModule = module {
    includes(remoteDataSourceModule, repositoryModule)
val remoteDataSourceModule = module {
    single { SampleRemoteDataSource() }
val repositoryModule = module {
    single { SampleRepo() }

Expected behavior
No error whatsoever when composing modules like the above with the help of includes

Koin module and version:

  • koin-core:3.5.0
  • koin-ktor:3.5.1
  •