Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Can not add property to parent of type object' when creating a project with numeric name #24541

Closed
1 task done
cyberbiont opened this issue Jan 12, 2023 · 1 comment · Fixed by #24543
Closed
1 task done
Labels
area: @angular-devkit/core freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix

Comments

@cyberbiont
Copy link

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

13

Description

When using ng new command to create a project, if project name consists of numbers only, like ng new 15 , I get an error on the stage after making a selection in 'Which stylesheet format would you like to use?' question (no matter what choice I have selected)

Minimal Reproduction

1 Run ng new 15
2 Select any answer to 'Which stylesheet format would you like to use?' question
3 Observe the error

Exception or Error

Can not add property to parent of type object

Your Environment

Angular CLI: 15.1.1
Node: 18.12.1
Package Manager: npm 9.2.0
OS: win32 x64

Anything else relevant?

No response

@alan-agius4 alan-agius4 added severity5: regression type: bug/fix freq1: low Only reported by a handful of users who observe it rarely area: @angular-devkit/core labels Jan 13, 2023
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 13, 2023
…iter

The workspace writer previously transformed number like strings to numbers which causes failures when a project is named using a number like name.

Closes angular#24541
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 13, 2023
…iter

The workspace writer previously transformed number like strings to numbers which causes failures when a project is named using a number like name.

Closes angular#24541
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 13, 2023
…iter

The workspace writer previously transformed number like strings to numbers which causes failures when a project is named using a number like name.

Closes angular#24541
@cyberbiont cyberbiont changed the title 'Can not add property to parent of type object' when creationg an object with numeric name 'Can not add property to parent of type object' when creating a project with numeric name Jan 15, 2023
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 18, 2023
…iter

The workspace writer previously transformed number like strings to numbers which causes failures when a project is named using a number like name.

Closes angular#24541
alan-agius4 added a commit to alan-agius4/angular-cli that referenced this issue Jan 18, 2023
…iter

The workspace writer previously transformed number like strings to numbers which causes failures when a project is named using a number like name.

Closes angular#24541
angular-robot bot pushed a commit that referenced this issue Jan 19, 2023
…iter

The workspace writer previously transformed number like strings to numbers which causes failures when a project is named using a number like name.

Closes #24541
angular-robot bot pushed a commit that referenced this issue Jan 19, 2023
…iter

The workspace writer previously transformed number like strings to numbers which causes failures when a project is named using a number like name.

Closes #24541

(cherry picked from commit f6f5d79)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular-devkit/core freq1: low Only reported by a handful of users who observe it rarely severity5: regression type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants