skip to Main Content

Flutter – build_runner stop to working after update

When I try to run dart run build_runner build --delete-conflicting-output I have the following uotput: Failed to build build_runner:build_runner: ../../../.pub-cache/hosted/pub.dev/macros-0.1.2-main.4/lib/src/bootstrap.dart:5:1: Error: Error when reading '../../../fvm/versions/stable/bin/cache/dart-sdk/pkg/_macros/lib/src/bootstrap.dart': No such file or directory export 'package:_macros/src/bootstrap.dart'; ^ ../../../.pub-cache/hosted/pub.dev/macros-0.1.2-main.4/lib/src/executor.dart:5:1: Error: Error when reading '../../../fvm/versions/stable/bin/cache/dart-sdk/pkg/_macros/lib/src/executor.dart': No…

VIEW QUESTION

Flutter isar with freezed throws Unsupported type error while build runner

While using isar with freezed, getting Unsupported type error for copyWith getter method while build runner. Here is the model class for which the build_runner is failing. import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:isar/isar.dart'; part 'api_response_model.freezed.dart'; part 'api_response_model.g.dart'; @collection @freezed class ApiResponseModel with…

VIEW QUESTION

Flutter – build_runner showing error The getter 'macroKeyword' isn't defined for the class 'ClassDeclaration'

When I am running build_runner command it is showing me following error: Failed to build build_runner:build_runner: ../../.pub-cache/hosted/pub.dev/dart_style-2.3.5/lib/src/front_end/ast_node_visitor.dart:251:16: Error: The getter 'macroKeyword' isn't defined for the class 'ClassDeclaration'. - 'ClassDeclaration' is from 'package:analyzer/src/dart/ast/ast.dart' ('../../.pub-cache/hosted/pub.dev/analyzer-6.2.0/lib/src/dart/ast/ast.dart'). Try correcting the name to the name…

VIEW QUESTION

Error: Method not found: 'NullThrownError' in flutter

I was getting the below error while running the flutter application post flutter upgrade to 3.10.6 Failed to build build_runner:build_runner: /C:/Users/Admin/AppData/Local/Pub/Cache/hosted/pub.dev/build_runner-2.3.2/lib/src/build_script_generate/bootstrap.dart:76:40: Error: Method not found: 'NullThrownE rror'. final error = e[0] as Object? ?? NullThrownError(); ^^^^^^^^^^^^^^^

VIEW QUESTION

Flutter Build_Runner Build Failing While Generating Floor

build failed after flutter upgrade. $ flutter pub run build_runner build [INFO] Generating build script completed, took 331ms [WARNING] ../../.pub-cache/hosted/pub.dev/floor_generator-1.4.1/lib/misc/type_utils.dart:25:26: Error: The getter 'element' isn't defined for the class 'DartType'. - 'DartType' is from 'package:analyzer/dart/element/type.dart' ('../../.pub-cache/hosted/pub.dev/analyzer-5.0.0/lib/dart/element/type.dart'). Try correcting the name…

VIEW QUESTION
Back To Top
Search