Skip to content

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

Closed
@cyberbiont

Description

@cyberbiont

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions