-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Description
Command
new
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
There are few issues in OOTB apps scaffolded with --file-name-style-guide=2016 flag.
- Application with standalone components:
- The path in
app.component.spec.tsrefers to a path without the suffix.component, and thus to a non-existent file:

- Application with NgModules:
-
Import in
app.component.spec.tsrefers to a path without the suffix.component, and thus to a non-existing file:

-
Import in
app-module.tsrefers to a path without the suffix.component, and thus to a non-existing file:

-
File names
app-model.tsandapp-routing-model.tsuse dashes as type separators, even though when generating the application with the flag--file-name-style-guide=2016, the configuration"typeSeparator: "."for module schematics:

Mentioned files should have names
app.module.tsandapp-routing.module.tsinstead
Minimal Reproduction
For application with standalone components:
npx @angular/cli@21.0.0-rc.4 new my-app --file-name-style-guide=2016For application with NgModules:
npx @angular/cli@21.0.0-rc.4 new my-app --file-name-style-guide=2016 --standalone=falseException or Error
Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI : 21.0.0-rc.4
Angular : 21.0.0-rc.2
Node.js : 22.12.0
Package Manager : yarn 1.22.22
Operating System : darwin arm64
┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build │ 21.0.0-rc.4 │ ^21.0.0-rc.4 │
│ @angular/cli │ 21.0.0-rc.4 │ ^21.0.0-rc.4 │
│ @angular/common │ 21.0.0-rc.2 │ ^21.0.0-next.0 │
│ @angular/compiler │ 21.0.0-rc.2 │ ^21.0.0-next.0 │
│ @angular/compiler-cli │ 21.0.0-rc.2 │ ^21.0.0-next.0 │
│ @angular/core │ 21.0.0-rc.2 │ ^21.0.0-next.0 │
│ @angular/forms │ 21.0.0-rc.2 │ ^21.0.0-next.0 │
│ @angular/platform-browser │ 21.0.0-rc.2 │ ^21.0.0-next.0 │
│ @angular/router │ 21.0.0-rc.2 │ ^21.0.0-next.0 │
│ rxjs │ 7.8.2 │ ~7.8.0 │
│ typescript │ 5.9.3 │ ~5.9.2 │
│ vitest │ 4.0.9 │ ^4.0.8 │
└───────────────────────────┴───────────────────┴───────────────────┘
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 rarelyseverity3: brokentype: bug/fix