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

Order of generation exception when using with injectable_builder on build_runner: ^2.4.4 #90

Open
starlight173 opened this issue May 17, 2023 · 0 comments

Comments

@starlight173
Copy link

starlight173 commented May 17, 2023

After upgrade to Flutter 3.10, I excuted the build runner to process:

flutter pub run build_runner build --delete-conflicting-outputs

Output:

Invalid argument(s): Required input cycle for [{autoApply: AutoApply.dependents, import: package:smartstruct_generator/integrations/builder.dart, builderFactories: [smartstructBuilder], buildExtensions: {.dart: [mapper.g.dart]}, requiredInputs: [.g.dart], runsBefore: [injectable_generator:injectable_builder], isOptional: false, buildTo: BuildTo.source, defaults: Instance of 'TargetBuilderConfigDefaults'}]

I believe this issue caused by the new build_runner updated:

  • Use a stable order for builders without an order defined by dependencies.

How can I fix it ? Thanks

@starlight173 starlight173 changed the title Build runner exception when using with injectable_builder on Flutter 3.10 Order of generation exception when using with injectable_builder on Flutter 3.10 May 18, 2023
@starlight173 starlight173 changed the title Order of generation exception when using with injectable_builder on Flutter 3.10 Order of generation exception when using with injectable_builder on build_runner: ^2.4.4 May 19, 2023
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