Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclear compiler error if string used as a path #1379

Closed
lifeart opened this issue Feb 12, 2022 · 0 comments
Closed

Unclear compiler error if string used as a path #1379

lifeart opened this issue Feb 12, 2022 · 0 comments

Comments

@lifeart
Copy link
Contributor

lifeart commented Feb 12, 2022

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:

<MyComponent a={{foo ("foo-baz")}} />
{{("foo-baz")}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant