injectable
injectable copied to clipboard
Issue with initialization of ObjectBox
Hi, I am having an issue with providing Store
from objectbox
library with module. While running build_runner
i am getting error "type 'DynamicElementImpl' is not a subtype of type 'ClassElement' in type cast". When I remove providing of Store
, build_runner succeeds.
Here is my module:
@module
abstract class RegisterModule {
@lazySingleton
@preResolve
Future<Store> get store async {
return await openStore();
}
}
What else I can provide to make investigation easier?