Hi all, I'm having troubles when mixing koin compi...
# koin
m
Hi all, I'm having troubles when mixing koin compiler DSL with koin classic DSL, the dependencies provided via the classic DSL are flagged as missing. The setup is the following:
Copy code
module {
    single<HttpClient>(named(WEBSOCKET_HTTP_CLIENT)) {
        createHttpClient().configureWebSocket()
    }

    single<SttWebSocketKtor>() <--- Uses HttpClient
}
with deps: koin-plugin - 0.4.0, koin - 4.2.0-RC-2, kotlin - 2.3.20-RC2 Leaving out the qualifier doesn't make any difference, seems to be an issue with how the classic dsl deps are seen. Any hint is greatly appreciated
✅ 1
💯 1
seems
compileSafety
is enabled by default in 0.4.0 and it cannot judge if the deps provided via classic dsl are present. Disabling it solves the issue
a
yes, this is the idea. You have also
unsafeDslChecks
to warn with DSL that are unsafe. If you are mixing safe/unsafe DSL, prefer disable compile safety