Unclear compiler error if string used as a path
lifeart opened this issue · comments
Original issue: emberjs/ember.js#19137
Attempt to fix: emberjs/ember.js#19137
But with compiler updates, error migrated to glimmer scope.
Likely should be fixed here: https://github.com/glimmerjs/glimmer-vm/blob/master/packages/@glimmer/syntax/lib/parser/handlebars-node-visitors.ts#L465
TypeError: Cannot read property 'type' of undefined
at acceptCallNodes (http://localhost:13141/ember-template-compiler.js:11731:26)
at TokenizerEventHandlers.SubExpression (http://localhost:13141/ember-template-compiler.js:11532:11)
at acceptCallNodes (http://localhost:13141/ember-template-compiler.js:11731:100)
at TokenizerEventHandlers.SubExpression (http://localhost:13141/ember-template-compiler.js:11532:11)
at TokenizerEventHandlers.acceptNode (http://localhost:13141/ember-template-compiler.js:11187:29)
at http://localhost:13141/ember-template-compiler.js:11732:62
at Array.map (<anonymous>)
at acceptCallNodes (http://localhost:13141/ember-template-compiler.js:11732:44)
at TokenizerEventHandlers.MustacheStatement (http://localhost:13141/ember-template-compiler.js:11358:13)
at TokenizerEventHandlers.acceptNode (http://localhost:13141/ember-template-compiler.js:11187:29)", source: (52)
Code sample: