Skip to content

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

Closed

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.

Activity

  1. added a commit that references this issue on May 10, 2018
    6aea0ae
  2. self-assigned this
    on May 10, 2018
  3. added a commit that references this issue on May 10, 2018
    dd166bf
  4. added a commit that references this issue on May 10, 2018
    fbcdb11
  5. added a commit that references this issue on Jun 6, 2018
    516c11d
  6. angular-automatic-lock-bot commented on Sep 8, 2019

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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