You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generate guard error: 'implements' list cannot be empty #4058
When calling ionic g guard <guardName>, the implements list is empty and an error is thrown:
Expected behavior:
Ionic CLI should prompt the user which interface he would like to implement and create the Guard from this basis (see Other information)
Steps to reproduce:
Call ionic g guard auth
Other information:
The error could occur due to an update of ng generate guard, because when calling the command the user is prompted which interface he would like to implement:
Sure, feel free to do so, thanks for taking care of.
The prompt is already working on the command ionic generate, maybe you can start there and implement it on ionic g guard as well.
Activity
[-]bug: [/-][+]Generate guard error: 'implements' list cannot be empty[/+]imhoffd commentedon Jun 28, 2019
Thanks @bene-we, looks like we have some updates to make to support these prompts. I opened this issue, but we may move it to the CLI repo (unsure of the best spot at the moment): https://github.com/ionic-team/angular-toolkit/issues/159
cc @mhartington
bene-we commentedon Jun 29, 2019
Sure, feel free to do so, thanks for taking care of.
The prompt is already working on the command
ionic generate, maybe you can start there and implement it onionic g guardas well.fix(angular): allow stdin to be passed for ng generate