'flattenedToList' isn't defined for the class 'Iterable<List<Folder>>' #59925
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
triage-automation
See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
when i try to run the command "dart run build_runner build --delete-conflicting-outputs", i'm getting the following error :-
`
Building package executable... (3.2s)
Failed to build build_runner:build_runner:
../../../.pub-cache/hosted/pub.dev/analyzer-7.2.0/lib/src/dart/analysis/driver.dart:706:39: Error: The getter 'flattenedToList' isn't defined for the class 'Iterable<List>'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'flattenedToList'.
var folders = packageMap.values.flattenedToList;
^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/analyzer-7.2.0/lib/src/fasta/ast_builder.dart:3136:31: Error: The getter 'flattenedToList' isn't defined for the class 'List<List>'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'flattenedToList'.
var members = membersList.flattenedToList;
^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/analyzer-7.2.0/lib/src/dart/element/generic_inferrer.dart:567:14: Error: The getter 'flattenedToList' isn't defined for the class 'Iterable<List<MergedTypeConstraint<DartType, TypeParameterElementImpl2, PromotableElementImpl2, InterfaceTypeImpl, InterfaceElementImpl2>>>'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'flattenedToList'.
.flattenedToList;
^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/analyzer-7.2.0/lib/src/dart/analysis/library_analyzer.dart:619:8: Error: The getter 'flattenedToSet' isn't defined for the class 'Iterable<Iterable>'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'flattenedToSet'.
}).flattenedToSet;
^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/analyzer-7.2.0/lib/src/dart/analysis/library_graph.dart:200:10: Error: The getter 'flattenedToList' isn't defined for the class 'Iterable<List<LibraryFileKind?>>'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'flattenedToList'.
.flattenedToList
^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.dev/analyzer-7.2.0/lib/src/summary2/library_builder.dart:509:25: Error: The getter 'flattenedToList' isn't defined for the class 'List<List>'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'flattenedToList'.
_macroResults.flattenedToList,
^^^^^^^^^^^^^^^
`
The text was updated successfully, but these errors were encountered: