ntminhdn / Flutter-Bloc-CleanArchitecture

457 stars 200 forks source link

failed build resources #34

Closed MrRossi82 closed 10 months ago

MrRossi82 commented 10 months ago

hello , when use make sync i have error

**resources: Failed to build intl_utils:generate: ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:1286:38: Error: Type 'ExtensionTypeDeclaration' not found. void visitExtensionTypeDeclaration(ExtensionTypeDeclaration node) { ^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2630:43: Error: Type 'RepresentationConstructorName' not found. void visitRepresentationConstructorName(RepresentationConstructorName node) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2636:39: Error: Type 'RepresentationDeclaration' not found. void visitRepresentationDeclaration(RepresentationDeclaration node) { ^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:1286:38: Error: 'ExtensionTypeDeclaration' isn't a type. void visitExtensionTypeDeclaration(ExtensionTypeDeclaration node) { ^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2630:43: Error: 'RepresentationConstructorName' isn't a type. void visitRepresentationConstructorName(RepresentationConstructorName node) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2636:39: Error: 'RepresentationDeclaration' isn't a type.

void visitRepresentationDeclaration(RepresentationDeclaration node) { ^^^^^^^^^^^^^^^^^^^^^^^^^ ../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/front_end/ast_node_visitor.dart:683:38: Error: Non-nullable variable 'forPartsPiece' must be assigned before it can be used. pieces.give(ForPiece(forKeyword, forPartsPiece, body, ^^^^^^^^^^^^^


$ melos exec └> flutter pub run intl_utils:generate └> FAILED (in 1 packages) └> resources (with exit code 1)

melos run l10n └> dart pub global run melos exec --fail-fast --scope="resources" --flutter -- flutter pub run intl_utils:generate └> FAILED ScriptException: The script l10n failed to execute. make: * [sync] Error 1

i try flutter 3.16.0 and 3.13.0

wickyou23 commented 10 months ago

The same error with me.

minhnt3 commented 10 months ago

I fixed it in this PR. Please check!