Command
generate
Is this a regression?
The previous version in which this bug was not present was
19.1.0
Description
When I try to generate a new component, files are expected to have a suffix .component and class name expected to have a suffix Component.
However in version 20.0.3, these suffixes are not generated by default:
> ng g c login
CREATE src/app/login/login.spec.ts (544 bytes)
CREATE src/app/login/login.ts (193 bytes)
CREATE src/app/login/login.scss (0 bytes)
CREATE src/app/login/login.html (21 bytes)
This also applies to services. I haven't tried other sub-commands.
I use Windows 11 and Powershell 7.
Minimal Reproduction
ng new test
cd test
ng g c login
Exception or Error
Your Environment
Anything else relevant?
As a workaround, using the --type component option when generating the components is working.
Command
generate
Is this a regression?
The previous version in which this bug was not present was
19.1.0
Description
When I try to generate a new component, files are expected to have a suffix
.componentand class name expected to have a suffixComponent.However in version 20.0.3, these suffixes are not generated by default:
This also applies to services. I haven't tried other sub-commands.
I use Windows 11 and Powershell 7.
Minimal Reproduction
Exception or Error
Your Environment
Anything else relevant?
As a workaround, using the
--type componentoption when generating the components is working.