Skip to content

Some components with numbers in the name don't work with Angle Brackets #17549

Closed

Description

@jenweber

As reported by @gmartell, if you have a number in a component name, it fails to be found if used with Angle Bracket invocation. It seems like a component number1-problem is ok as <Number1-Problem /> but fails as <Number1Problem />.

Minimal reproduction

Activity

  1. maxwondercorn commented on Feb 2, 2019

    @maxwondercorn

    Issue is specifically converting ember-c3 to angle bracket invocation. Working invocation

    {{c3-chart
      data=this.computedData
      size=@size
      axis=this.axis
      color=this.color
      point=this.point
      zoom=this.zoom
    }}
    

    converted to angle brackets

    <C3Chart
      @data={{this.computedData}}
      @size={{@size}}
      @axis={{this.axis}}
      @color={{this.color}}
      @point={{this.point}}
      @zoom={{this.zoom}}
    />
    

    This generates Error: Compile Error: Cannot find component c3chart from the opcode compiler.

    I've tried some camelcase variations and either get the same error message or TypeError: func is not a function. (In 'func(exp, builder)', 'func' is undefined)

  2. changed the title [-]Some components with numbers in them don't work with Angle Brackets[/-] [+]Some components with numbers in the name don't work with Angle Brackets[/+] on Feb 2, 2019
  3. jenweber commented on Feb 2, 2019

    @jenweber
    ContributorAuthor

    I'm having a look at this issue.

  4. jenweber commented on Feb 2, 2019

    @jenweber
    ContributorAuthor
  5. added 2 commits that reference this issue on Feb 5, 2019
    f485ad5
    7ccdee9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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