Stacked-Org/stacked

[bug]: Error when running stacked create service

Opened this issue · 5 comments

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

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

@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

@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.

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

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