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

Unhelpful error when passing arg to HTML element #747

Open
tomdale opened this issue Nov 27, 2017 · 2 comments
Open

Unhelpful error when passing arg to HTML element #747

tomdale opened this issue Nov 27, 2017 · 2 comments

Comments

@tomdale
Copy link
Contributor

tomdale commented Nov 27, 2017

Passing an argument to a non-component produces an unhelpful error message.

Example

<h1 @count={{count}}>Hello</h1>

Playground Link

Expected behavior

A helpful error message, like

Cannot pass the '@count' argument to <h1>, because it is an HTML element, not a component. Arguments can only be passed to components.

Actual behavior

func is not a function
@givanse
Copy link

givanse commented Aug 29, 2018

The exact same error message is logged if you use a custom helper in block form.

@locks
Copy link
Contributor

locks commented Dec 9, 2020

Still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants