Facing a weird issue if anyone can help, just upgr...
# javascript
s
Facing a weird issue if anyone can help, just upgraded from kotlin 2.2.10 to 2.2.21 And some tests started failing (only for js target) Keep getting:
someclass.method_wwbxe_k$ is not a function
(class, method name redacted) The library uses Koin for DI and till now have pinpointed this to only happen for tests with calls on objects fetched by a utility method:
internal inline fun <reified T : Any> get(): T = koin.get() ?: error("Koin not initialized")
This in most cases returns a concrete impl injected in Koins DI graph for some interface
b
This looks like KT-80991. In this case, the workaround is to look for places where you have an unqualified
get
call, and use qualified call instead:
MyObject.get()
. This issue is a high priority on our list.
👍 1
👀 1
s
Yes, just renaming the function from get to anything else fixed the issue. Dangerous bug!