[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](https://private-user-images.githubusercontent.com/88543918/322052523-6419bb67-f971-4885-a07d-f0220fd6cf15.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MDA1MTgsIm5iZiI6MTcyNTQwMDIxOCwicGF0aCI6Ii84ODU0MzkxOC8zMjIwNTI1MjMtNjQxOWJiNjctZjk3MS00ODg1LWEwN2QtZjAyMjBmZDZjZjE1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDIxNTAxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ4ZGE0ZDhiMTczNDU4OWEyNjNhMDI0YWVkZjE3YmRjOGRmNTUzMzg5ODAyNzAzNDQ0MmNhYjEwMzk4ZDEwZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Qr2L8L-kNGISinqrUne43vR3pk0q7pTeZEUMwA8ffm8)
![Screenshot 2024-04-12 at 17 21 47](https://private-user-images.githubusercontent.com/88543918/322052535-79c939eb-5674-4a3c-98ea-980682084261.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MDA1MTgsIm5iZiI6MTcyNTQwMDIxOCwicGF0aCI6Ii84ODU0MzkxOC8zMjIwNTI1MzUtNzljOTM5ZWItNTY3NC00YTNjLTk4ZWEtOTgwNjgyMDg0MjYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAzVDIxNTAxOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE2NDdlMmE5N2E3ODZhMjljOWE4MGVmYjAyMjMxYTY1MjZlMWJmODQzZmUwZjAyMTYyMGQ2OWUyMTQ1NTIyMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.eRUc52alRHYHvcVQsQ2f4341q8elfyWg9CLxphWr6Js)
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
@ferrarafer this is the app.dart and stacked.json files
![]()
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 .