stacked icon indicating copy to clipboard operation
stacked copied to clipboard

[bug]: Error when running stacked create service

Open ZackBela opened this issue 1 year ago • 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

ZackBela avatar Apr 12 '24 16:04 ZackBela

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

ferrarafer avatar Apr 12 '24 19:04 ferrarafer

@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

ZackBela avatar Apr 13 '24 01:04 ZackBela

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

KoalityJustin avatar Apr 15 '24 03:04 KoalityJustin

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

ferrarafer avatar Apr 16 '24 19:04 ferrarafer

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

ZackBela avatar Apr 17 '24 10:04 ZackBela