Hey i am using Koin annotations in a KMM project and. i am getting this weird error :
so I have this expect function
Copy code
expect fun Scope.sqlDriverFactory(): SqlDriver
if I put an @Single on top of it, but when the app builds and the default module is created I get an error :
single() { com.app.name.core.data.local.sqlDriverFactory() }
saying that Unresolved reference: sqlDriverFactory
a
arnaud.giuliani
09/11/2023, 10:11 AM
are you using an extension function here?
y
youssef
09/12/2023, 7:24 AM
yes i am
a
arnaud.giuliani
09/12/2023, 8:14 AM
is it needed? else try to have a simpler function, no extension. Not sure the case of extension function is handled