-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix
Description
Command
generate
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
So I wanted to create a component for 404 page and ran the command ng g c 404
it created the component but the component immediately thrown error for component class name. I think we can fix this issue by having regex to validate the component name or atleast we can show info to user to not create component name starting with numbers. Here is the reproduction for the error:
Minimal Reproduction
- Run
ng g c 404
in your angular project. - Open the component which will have compilation error being thrown.
Exception or Error
No response
Your Environment
Angular CLI: 18.2.6
Node: 18.20.3
Package Manager: npm 10.2.3
OS: linux x64
Angular: 18.2.6
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1802.6
@angular-devkit/build-angular 18.2.6
@angular-devkit/core 18.2.6
@angular-devkit/schematics 18.2.6
@schematics/angular 18.2.6
rxjs 7.8.1
typescript 5.5.4
zone.js 0.14.10
Anything else relevant?
No response
Metadata
Metadata
Assignees
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity2: inconvenienttype: bug/fix