Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: Files missing on new app creation #1115

Open
Nialisc opened this issue Jul 19, 2024 · 1 comment
Open

[bug]: Files missing on new app creation #1115

Nialisc opened this issue Jul 19, 2024 · 1 comment

Comments

@Nialisc
Copy link

Nialisc commented Jul 19, 2024

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

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

@maxiggle
Copy link

maxiggle commented Aug 4, 2024

I am having the same errors too. Any fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants