-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Generated angular.json file does not correctly lower case the application name #17579
Copy link
Copy link
Closed
Closed
Copy link
Labels
area: @schematics/angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelygood first issueLabel noting a good first issue to be worked on by a community memberLabel noting a good first issue to be worked on by a community memberhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fixseverity3: brokentype: bug/fix
Milestone
Description
🐞 Bug report
Command (mark with an x)
- [x ] new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- xi18n
- run
- config
- help
- version
- doc
Is this a regression?
I'm not certain whether this is a regression. I don't recall seeing the issue. No one had reported it to me previously. But that doesn't mean it didn't exist.
Description
When you create a new Angular project using ng new with an upper case or mixed case name, the Angular CLI correctly converts the name to lower case for the keys in the package.json file. It does not convert the name to lower case for the keys in the angular.json file. See the "Minimal Reproduction" for screen shots.
🔬 Minimal Reproduction
ng new Hello-World
Resulting package.json file correctly lower cases the project name:

Resulting angular.json file does not lower case the project name, resulting in an error (see below):

🔥 Exception or Error
Property Hello-World is not allowed
🌍 Your Environment
Angular CLI: 9.1.3
Node: 12.16.1
OS: win32 x64
Angular: 9.1.4
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.901.3
@angular-devkit/build-angular 0.901.3
@angular-devkit/build-optimizer 0.901.3
@angular-devkit/build-webpack 0.901.3
@angular-devkit/core 9.1.3
@angular-devkit/schematics 9.1.3
@angular/cli 9.1.3
@ngtools/webpack 9.1.3
@schematics/angular 9.1.3
@schematics/update 0.901.3
rxjs 6.5.5
typescript 3.8.3
webpack 4.42.0
Anything else relevant?
Reactions are currently unavailable
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 rarelygood first issueLabel noting a good first issue to be worked on by a community memberLabel noting a good first issue to be worked on by a community memberhelp wantedLabel noting an issue which the team is looking for contribution from the community to fixLabel noting an issue which the team is looking for contribution from the community to fixseverity3: brokentype: bug/fix
