build-runner Questions

24

Solved

I'm just trying to generate my files with the same command i stored like 3 months ago (i'm not very good with backend and devops) and now it doesn't generate the files anymore. It tells me to use ...
Growler asked 9/1, 2020 at 16:41

5

Solved

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_visit...
Haslett asked 29/2, 2024 at 8:6

8

Im having issues to get the desired output for my json file with the build_runner it runs successfully but isn't giving any outputs my first.dart file ``` import 'package:json_annotation/json_annot...
Nunez asked 17/12, 2021 at 6:58

6

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/...
Bonita asked 25/7, 2023 at 15:0

2

Solved

When I run flutter pub run build_runner build --delete-conflicting-outputs, I get this error: Deprecated. Use `dart run` instead. [INFO] Generating build script completed, took 169ms [WARNING] ../....
Cabana asked 24/6, 2023 at 7:36

2

Solved

I am trying to create a build_extensions rule in build.yaml for builders freezed and json_serializable to output all generated models in the directory lib/generated/model, irrespective of their ori...
Estheresthesia asked 22/12, 2022 at 13:58

1

I have made a SharedPartBuilder that generates new class annotated with @JsonSerializable(). How can I configure json_serializable to run over .part file generated by my builder before all .part fi...
Haiku asked 25/8, 2023 at 10:48

2

Solved

In my app, I use freezed with json_serializable. In the folder, where I put all my data models a lot of generated files, like model.g.dart, model.freeezed.dart. Is there any possibility to move all...
Hedgehop asked 30/6, 2021 at 7:17

5

Solved

After running flutter pub run build_runner watch --delete-conflicting-outputs Build Runner Output $ flutter pub run build_runner watch --delete-conflicting-outputs [INFO] Generating build script......
Outleap asked 3/11, 2020 at 7:36

2

When refactoring my code and when executing build_runner, I received out of a sudden loads of errors alike [SEVERE] injectable_generator:injectable_builder on lib/application/authorization/xxx data...
Coppage asked 5/8, 2021 at 8:34

4

Solved

I'm using MobX for my flutter project and it needs build_runner to generate related files, now I have hundred auto-generated files, now I want to remove them all, What command can lean my project f...
Shown asked 7/3, 2020 at 10:53

2

Running build_runner to generate mocks using the Mockito package fails. Terminal output: [INFO] Generating build script... [INFO] Generating build script completed, took 2.2s [INFO] Precompiling b...
Madiemadigan asked 5/8, 2022 at 13:7

1

Solved

I have a project which consists of one runable project and multiple local packages. These packages are modules and a core framework. I am using json serialization and other packages which depend on...
Kenelm asked 23/1, 2021 at 18:50

5

I run flutter packages pug run build_runner build, the normal command with which you would create a TypeAdapter in Flutter, I get the following error: type 'UnspecifiedInvalidResult' is not a subt...
Conlen asked 15/7, 2021 at 21:58

3

Solved

I'm writing a code generator for Dart using the build_runner, but my builder is not being called for annotations at fields, although it does work for annotations at classes. Is it possible to also...
Bicuspid asked 3/11, 2019 at 19:3

1

Solved

Problem statement: I am building a code generator with the build_runner package. I run flutter pub run build_runner build to execute my code generators. Question: How can I debug flutter pub run bu...
Kleeman asked 14/10, 2021 at 7:54

3

Solved

EDIT 3 This must be a font_awesome_flutter issue. When I leave dependency_overrides in pubspec.yaml but remove the font_awesome_flutter argument, so just do this: dependency_overrides: It works. I...
Stouthearted asked 6/3, 2021 at 8:20

2

Solved

I want to put break point on my generator code, but I don't know how to run the command on the debug mode. I wrote generator using source_gen and build_runner class MyGenerator extends Generator...
Encore asked 30/10, 2019 at 15:9

3

I have added // @dart=2.9 to all my files but the build_runner won't do its thing without throwing this error: Warning: Operand of null-aware operation '?.' has type 'SendPort' which excludes null....
Spongioblast asked 7/2, 2021 at 15:12

3

Solved

I'm trying to auto generate json_serializable code for my models in flutter app. Here is an example of my model: import 'package:propro/src/models/product_model.dart'; import 'package:propro/src/mo...
Tailpiece asked 10/8, 2020 at 5:38
1

© 2022 - 2025 — McMap. All rights reserved.