https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
d

Dani Diprana

02/28/2024, 9:06 AM
Hello everyone, Does anyone ever use Koin with MultiPlatform Settings? I have an integration test on KMP, and the test running on JS fails when we add Multiplatform dependency even though we haven't used the implementation (literally only add the dependency). Here is the error message.
Copy code
IllegalStateException: KoinApplication has not been started
IllegalStateException: KoinApplication has not been started
	at GlobalContext.protoOf.get_26vq(/Users/arno/workspace/koin-projects/koin/core/koin-core/src/jsMain/kotlin/org/koin/core/context/GlobalContext.kt:80)
	at Component.getKoin_18vqwx(/Users/arno/workspace/koin-projects/koin/core/koin-core/src/commonMain/kotlin/org/koin/core/component/KoinComponent.kt:33)
	at <global>.<unknown>(/Users/arno/workspace/koin-projects/koin/core/koin-core/src/commonMain/kotlin/org/koin/core/Koin.kt:35)
	at UnsafeLazyImpl.protoOf.get_value_j01efc(/Users/vidio/Workspace/vidio-app/shared/build/compileSync/js/test/testDevelopmentExecutable/kotlin/src/kotlin/util/Lazy.kt:81)
It's interesting. Does someone ever experience the same issue? If yes, how do you guys encounter the issue? Thanks ~
p

Pablichjenkov

02/28/2024, 9:09 AM
You can forward/share to #koin
d

Dani Diprana

02/28/2024, 9:10 AM
Okay. Thanks, mate
👍 1
2 Views