I'm having issue running the
flutter pub run build_runner build --delete-conflicting-outputs
The command does not go in error, but it's stuck on the first file:
WARNING] No actions completed for 15.0s, waiting on:
- auto_route_generator:autoRouteGenerator on lib/ui/shared/ui_helpers.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/settings/settings_datamodel.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/settings/settings.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/review_invitation/review_invitation_datamodel.dart
- auto_route_generator:autoRouteGenerator on lib/ui/views/review_invitation/review_invitation.dart
.. and 9 more
[INFO] 1m 17s elapsed, 1/15 actions completed.
The following is my pubspec:
dependencies:
flutter:
sdk: flutter
# see below for explanation
stacked_services:
auto_route:
stacked: ^1.7.6
stacked_hooks: 0.1.1+3
flutter_hooks:
get_it:
injectable:
validators: ^2.0.0
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.3
dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
auto_route_generator:
injectable_generator:
While this is the class for my router.dart
import 'package:auto_route/auto_route_annotations.dart';
import 'package:myapp/ui/views/StartupView.dart';
@MaterialAutoRouter(
routes: <AutoRoute>[
MaterialRoute(page: StartupView, initial: true),
],
)
class $Router {}
Any advices?
flutter clean
2:flutter doctor -v
3. try for build again – Shailesh Bhokare