I am trying to migrate KMP project to kotlin 2.0 and koin 4.0 and I am getting
Missing Definition type
for all my
single{}
definitions from Koin. My previous setup was kotlin 1.9 and koin 3.4.3 and everything was working good.
My setup is as follows:
⢠in android project I am using koin modules defined using dsl like module { single { MyClass(get(), get()) } } and also annotations with
ComponentScan
⢠in shared project (kmp) I am using only koin dsl
⢠the annotated classes (for example view models) are using shared classes (defined using dsl)
The error also says:
Error occurred in KSP, check log for detail
š 1
Piotr Prus
01/20/2025, 2:14 PM
I have checked my generated module:
AppModule().module
. the one that is generated from ksp,
Copy code
import org.koin.ksp.generated.module
and everything looks correct. All my classes are there, no errors, but compiler crashes with