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

Missing dependencies #457

Open
vicenterusso opened this issue May 6, 2024 · 0 comments
Open

Missing dependencies #457

vicenterusso opened this issue May 6, 2024 · 0 comments

Comments

@vicenterusso
Copy link

Are missing dependencies actual an error or just a warning? In my specific case its not detecting a instance registered manually before. But the app appears to be working normally.

[IsarAdapter] depends on unregistered type [Isar] from package:isar/isar.dart

var isar = await Isar.open(
  // ...
);

sl.registerSingleton<Isar>(isar);
sl.registerSingleton<IsarAdapter>(IsarAdapter(isar));

// (...)

@Singleton(order: -100)
class IsarAdapter {
  final Isar _isar;
  IsarAdapter(this._isar);
  Isar get isar => _isar;
}
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