[INFO] Generating build script...
[INFO] Generating build script completed, took 684ms
[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 200ms
[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 1.5s
[INFO] Running build...
[INFO] Running build completed, took 75ms
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 155ms
[SEVERE] inject_generator:inject_generator on lib/component/app_component.dart (cached):
merchant|lib/component/app_component.dart at 7:1: injector class must declare at least one provider:
@Injector(const [PreferenceModule]) abstract class AppComponent {static Future<AppComponent> create(PreferenceModule preferenceModule) async {return await g.AppComponent$Injector.create(preferenceModule);}}
[SEVERE] Failed after 250ms
pub finished with exit code 1
这是我运行命令后得到的:
flutter包pub run build_runner build
谁能帮助我该怎么办?