I am trying to migrate KMP project to kotlin 2.0 a...
# koin
p
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
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
missing definition type
for all of them
It looks like this is the issue I am having: https://github.com/InsertKoinIO/koin-annotations/issues/132 @arnaud.giuliani can we expect new KA build today? 🙏
a
yes ongoing, I should deploy fixes this week
👍 1