You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
stacked create app new_app
cd new_app
flutter run -d <HARDWARE_ID>
Results
llib/main.dart:2:8: Error: Error when reading 'lib/app/app.bottomsheets.dart': No such file or directory
import 'package:new_app/app/app.bottomsheets.dart';
^
lib/main.dart:3:8: Error: Error when reading 'lib/app/app.dialogs.dart': No such file or directory
import 'package:new_app/app/app.dialogs.dart';
^
lib/main.dart:4:8: Error: Error when reading 'lib/app/app.locator.dart': No such file or directory
import 'package:new_app/app/app.locator.dart';
^
lib/main.dart:5:8: Error: Error when reading 'lib/app/app.router.dart': No such file or directory
import 'package:new_app/app/app.router.dart';
^
lib/main.dart:10:9: Error: Method not found: 'setupLocator'.
await setupLocator();
^^^^^^^^^^^^
lib/main.dart:11:3: Error: Method not found: 'setupDialogUi'.
setupDialogUi();
^^^^^^^^^^^^^
lib/main.dart:12:3: Error: Method not found: 'setupBottomSheetUi'.
setupBottomSheetUi();
^^^^^^^^^^^^^^^^^^
lib/main.dart:22:21: Error: The getter 'Routes' isn't defined for the class 'MainApp'.
- 'MainApp' is from 'package:new_app/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'Routes'.
initialRoute: Routes.startupView,
^^^^^^
lib/main.dart:23:24: Error: The method 'StackedRouter' isn't defined for the class 'MainApp'.
- 'MainApp' is from 'package:new_app/main.dart' ('lib/main.dart').
Try correcting the name to the name of an existing method, or defining a method named 'StackedRouter'.
onGenerateRoute: StackedRouter().onGenerateRoute,
^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
Expected behavior
No response
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the
stacked_cli
to create a new app, some files are missing and the app can't build.What operating system do you use?
Linux
Information about the installed tooling
# stacked --version
1.13.1
# flutter --version
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
Steps to reproduce the issue
Commands
Results
Expected behavior
No response
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: