You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Some components with numbers in the name don't work with Angle Brackets #17549
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 />.
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)
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
Activity
maxwondercorn commentedon Feb 2, 2019
Issue is specifically converting ember-c3 to angle bracket invocation. Working invocation
converted to angle brackets
This generates
Error: Compile Error: Cannot find component c3chartfrom 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)rwjblue commentedon Feb 2, 2019
The issue is in https://github.com/emberjs/ember.js/blob/master/packages/ember-template-compiler/lib/system/dasherize-component-name.ts
There are unit tests setup in
https://github.com/emberjs/ember.js/blob/master/packages/ember-template-compiler/tests/system/dasherize-component-name-test.js
I think a few tweaks to those regexps should do the trick.
[-]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[/+]jenweber commentedon Feb 2, 2019
I'm having a look at this issue.
jenweber commentedon Feb 2, 2019
PR #17552
[BUGFIX lts] support numbers in component names for Angle Brackets
[BUGFIX lts] support numbers in component names for Angle Brackets