injectable icon indicating copy to clipboard operation
injectable copied to clipboard

Issue with initialization of ObjectBox

Open JakubNeukirch opened this issue 2 years ago • 0 comments

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?

JakubNeukirch avatar Jun 05 '22 09:06 JakubNeukirch