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]: Error when running stacked create service #1096

Open
ZackBela opened this issue Apr 12, 2024 · 5 comments
Open

[bug]: Error when running stacked create service #1096

ZackBela opened this issue Apr 12, 2024 · 5 comments
Labels
Improvement An issue to improve existing functionality

Comments

@ZackBela
Copy link

Describe the bug

i have a problem when running stacked create service, the file appears in the services folder but an error appears in the terminal and i cant use the service
PS: I'm using the Isar local database, perhaps the problem because I'm using Isar with the stacked architecture I'm not sure, if there's any help ill be very grateful.
also i deleted the test file because i don't need it .

What operating system do you use?

macOS

Information about the installed tooling

No response

Steps to reproduce the issue

run stacked create service

Expected behavior

No response

Screenshots

Screenshot 2024-04-12 at 17 22 02 Screenshot 2024-04-12 at 17 21 47

Additional Context

No response

@ferrarafer
Copy link
Contributor

Hi @ZackBela, can you provide the code of app.dart and stacked.json please?

@ferrarafer ferrarafer added the Feedback Requested Waiting for new information from the OP label Apr 12, 2024
@ZackBela
Copy link
Author

@ferrarafer this is the app.dart and stacked.json files
Screenshot 2024-04-13 at 02 10 42
Screenshot 2024-04-13 at 02 05 49

@KoalityJustin
Copy link

@ferrarafer this is the app.dart and stacked.json files Screenshot 2024-04-13 at 02 10 42 Screenshot 2024-04-13 at 02 05 49

I was having the exact same issue and it seems the file test/helpers/test_helpers.dart is required to exist for the CLI to modify files correctly. Once I created that file (even if empty) the CLI started working.

@ferrarafer
Copy link
Contributor

@ZackBela I was going to ask why I don't see the test folder in your structure. Use the advice of @KoalityJustin above.

@ferrarafer ferrarafer added p3 Improvement An issue to improve existing functionality and removed Feedback Requested Waiting for new information from the OP p3 labels Apr 16, 2024
@ZackBela
Copy link
Author

I created the empty files and the cli worked perfectly , thanks a lot for the help @KoalityJustin @ferrarafer .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement An issue to improve existing functionality
Projects
None yet
Development

No branches or pull requests

3 participants