Open developer82 opened 11 months ago
I'm trying to make the build script generate the part build files in a different location (as I do for freezed and riverpod). The following is my build.yaml:
build.yaml
targets: $default: builders: source_gen|combining_builder: generate_for: - lib/**.dart options: build_extensions: '^lib/{{}}.dart': 'lib/.generated/{{}}.g.dart' freezed|freezed: enabled: true options: build_extensions: '^lib/{{}}.dart': 'lib/.generated/{{}}.freezed.dart' auto_route_generator:auto_router_generator: enabled: true options: build_extensions: '^lib/{{}}.dart': 'lib/.generated/{{}}.gr.dart'
I'm getting the following error:
[INFO] Generating build script completed, took 215ms [SEVERE] Invalid argument(s): Configured build_extensions should be a map from inputs to outputs.
Even if I change the configuration line for the generator to auto_route_generator|auto_router_generator: as it is for other builders.
auto_route_generator|auto_router_generator:
What am I missing?
did you get any solution for it?
Sadly no
I'm trying to make the build script generate the part build files in a different location (as I do for freezed and riverpod). The following is my
build.yaml
:I'm getting the following error:
Even if I change the configuration line for the generator to
auto_route_generator|auto_router_generator:
as it is for other builders.What am I missing?