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
Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When using ng generate guard, it allows me to select multiple options for class based guards. However when I select multiple options, it returns the following error.
"Can only specify one value for implements when generating a functional guard."
ng generate guard auth
? Which type of guard would you like to create? CanActivate, CanActivateChild, CanDeactivate
Can only specify one value for implements when generating a functional guard.
ng generate guard auth/auth
? Which type of guard would you like to create? CanActivate
CREATE src/app/auth/auth.guard.spec.ts (478 bytes)
CREATE src/app/auth/auth.guard.ts (133 bytes)
Minimal Reproduction
Create new project guard-bug and try to generate guard auth.
ng new guard-bug
? Which stylesheet format would you like to use? Sass (SCSS) [ https://sass-lang.com/documentation/syntax#scss ]
? Do you want to enable Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering)? no
ng generate guard auth
? Which type of guard would you like to create? CanActivate, CanActivateChild, CanDeactivate, CanMatch
Can only specify one value for implements when generating a functional guard.
Exception or Error
Can only specify one value for implements when generating a functional guard.
Command
generate
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When using ng generate guard, it allows me to select multiple options for class based guards. However when I select multiple options, it returns the following error.
"Can only specify one value for implements when generating a functional guard."
Minimal Reproduction
Create new project guard-bug and try to generate guard auth.
Exception or Error
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: