Skip to content

ng generate errors out when no app prefeix is set #10659

Closed
@SanderElias

Description

@SanderElias

Versions

6

Repro steps

ng new someproject
cd someproject
// edit angular.json
ng g component demo 

The edit in angular.json is setting the prefix to ""

Observed behavior

image

Desired behavior

No error. It is perfectly legal to not have a prefix. (might be unwise, but still). The thing should check if there will be a - in there, as the standards demand that for custom elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    freq1: lowOnly reported by a handful of users who observe it rarelyseverity3: broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions