Describe the bug
If the injection is defined as part of a route it will not find the class.
To Reproduce
Define something like:
fun Route.account() {
route("/account") {
val fetchAccountUseCase by inject<FetchAccountUseCase>()
get {
// whatever
}
}
}
java.lang.NoClassDefFoundError: io/ktor/server/routing/RoutingKt
at org.koin.ktor.ext.RouteExtKt.getKoin(RouteExt.kt:74)
at app.presentation.account.AccountKt$account$$inlined$inject$default$1.invoke(RouteExt.kt:76)
Describe the bug If the injection is defined as part of a route it will not find the class.
To Reproduce Define something like:
Expected behavior Everything should run smoothly.
Koin module and version:
koin-core:4.0.0
ktor:3.0.0