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

Error incorrectly percolates to top of each #68

Open
wagenet opened this issue Mar 5, 2021 · 4 comments
Open

Error incorrectly percolates to top of each #68

wagenet opened this issue Mar 5, 2021 · 4 comments

Comments

@wagenet
Copy link
Contributor

wagenet commented Mar 5, 2021

{{!--
  interface Args {
    items: Array<{
      nested?: { value: number }
    }>
  }
--}}

{{#each @items as |item|}}
  <p>
    {{item.nested.value}}
  </p>
{{/each}}

This causes the whole each block to become a warning instead of just the specific line with {{item.nested.value}}.

@lifeart
Copy link
Owner

lifeart commented Mar 6, 2021

image

is it full template? minimal reproduction don't failing for me

@wagenet
Copy link
Contributor Author

wagenet commented Mar 9, 2021

This is the full reproduction, but I'll check again.

@wagenet
Copy link
Contributor Author

wagenet commented Mar 9, 2021

Ah, the issue is not an incorrect property, it has to do with the warning around optional chaining.

@lifeart
Copy link
Owner

lifeart commented Mar 9, 2021

related issues: #57, #50

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

2 participants