since 4.0.0 it crashes build for kotlin multiplatf...
# koin
p
since 4.0.0 it crashes build for kotlin multiplatform project for desktop, and wasm. With 4.0.0-RC2 it was ok.
m
Are you using KoinApplication Composable ? if yes it's implementation changed a bit
p
Yes it was working with 4. Rc2 but not with 4
It says no definition found for a viewmodel with 4.0.0
I don't know that they are changing since rc2 and 4.0.0
m
in RC2 we had to do
Copy code
KoinApplication(application = { koinApplication { modules(appModule, platformModule, databaseModule, viewModelModule) } }) {
but in 4.0.0 it's
Copy code
KoinApplication(application = { modules(appModule, platformModule, databaseModule, viewModelModule) }) {
p
Ok I will try but why they change since the last RC and final version
ok great it works. Hope Koin will make more documentation for desktop and wasm in kotlin multiplatform