Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSharedViewModel causes NoBeanDefFoundException after version update in an IsolatedContext #1881

Open
goemic opened this issue May 22, 2024 · 0 comments

Comments

@goemic
Copy link

goemic commented May 22, 2024

Describe the bug
I'm trying to update from v3.1.4 to the latest v3.5.6. Unfortunately I'm getting this exception:
Caused by: org.koin.core.error.NoBeanDefFoundException: No definition found for type '***..'. Check your Modules configuration and add missing type and/or qualifier!

The problem seems to be the getSharedViewModel() method/behavior which is deprecated - but still should be working.
We are using koin with an IsolatedContext in a submodule.
For my kotlin class (Fragment) I'm able to switch to the getActivityViewModel() method which works fine. But for my java classes this method is not accessible nor is the deprecated getSharedViewModel() working.

Expected behavior
getSharedViewModel() still references to the IsolatedContext or a possibility to access getActivityViewModel() from a java class.

Koin module and version:
koin-core:3.5.6
koin-android:3.5.6
koin-android-compat:3.5.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant