injectable icon indicating copy to clipboard operation
injectable copied to clipboard

Code Generator for get_it

Results 152 injectable issues
Sort by recently updated
recently updated
newest added

I'm using the injectable environment feature, which functions similarly to Android product flavors. While everything works seamlessly within the lib folder of my Flutter project, I'm facing a challenge. I...

When I run not `dev` flavor error is threw. ``` const String _dev = 'dev'; const String _prod = 'prod'; const String _test = 'test'; const String _odin = 'odin';...

Hello, right now there is an issue regarding the order the dependencies are registered when using multiple environments. Let's say we have a class UserApi which we annotate with @dev,...

Updating from `injectable 2.3.2` to the latest version has broken my app. Seems like `Scope` annotation needs some more `TargetKind`s added to it.

When I run the package with the `example` directory Terminal log error ``` Deprecated. Use `dart run` instead. [INFO] Generating build script completed, took 473ms [INFO] Reading cached asset graph...

Consider the following code: ```dart @module abstract class MyServiceRegistrations { /// Example 1 (Working) @singleton @preResolve Future myServiceA1() async => MyServiceA1(); @singleton MyServiceA2 myServiceA2(MyServiceA1 s1) => MyServiceA2(); /// Example 2...

``` import 'package:app_factory_core/app_factory_core.dart'; import 'package:app_factory_dev/src/di/configure_dependencies.config.dart'; import 'package:get_it/get_it.dart'; import 'package:injectable/injectable.dart'; final getIt = GetIt.instance; @InjectableInit( asExtension: false, generateForDir: ['lib/src/di'], initializerName: r'$initModuleGetIt', includeMicroPackages: false, externalPackageModulesAfter: [ ExternalModule(AppFactoryCorePackageModule), ], ) Future configureDependencies() async...

Hello everyone, during the installation via "flutter pub add injectable" I get the following error: ``` The current Dart SDK version is 3.5.3. Because injectable =2.5.0

Hey 👋 Micromodules are initialized first, and then the packages linked to the main module are initialized. As a result, the packages required by the micromodules cannot be loaded. A...

With the new version of get_it: ^8.0.0 you get the following error. ```sh Because injectable 2.4.4 depends on get_it ^7.2.0 and no versions of injectable match >2.4.4