-
Notifications
You must be signed in to change notification settings - Fork 235
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
no-access-missing-member and async pipe #190
Comments
Having the exact same problem, something that made the error go away was changing things like this
to
Though I think this might just be hiding the problem, or just preventing the rule from checking properly, so not really a long-term or good solution |
Thanks for pointing this out! I'll fix it during the holidays. |
Thanks @UnwrittenFun for the workaround 👍 |
And so that points out that ngif is not check for no-access-missing-member as well |
After debugging this further, it turns out that the issue is related with the |
@mgechev Is there another issue open for this bug? I'm experiencing it currently (see angular/angular-cli#4351), and I don't understand from your comment why you closed the present issue… |
It's caused by lack of metadata for the As part of the new release, we'll work on improvements in this direction. |
Thank you for the explanation |
@mgechev sorry to bother you again but could you give an example of what you meant by:
I really don't get how to make it work… And by the way, why close this issue if it is not fixed (I just tried latest release)? |
I will take a look at the issue today. Until then, let's reopen it. |
@mgechev anything we can do to help fix this issue? or maybe could you share an easy workaround (via |
Probably this is caused by the incomplete metadata collection. Introducing ngast should fix the issue. Moving to 2.0.2. |
@mgechev not exactly sure why, but since |
Thanks! I will close the issue when I have a chance to verify it's gone. |
Yes, it seems |
I'm using codelyzer 2.0.1 and @angular/cli 1.0.0-rc0 and the problem seems to still exist for me? Anyone else still having issues with this? |
@rthewhite last time I checked, it worked with exactly both these settings. Are you sure you configured your angular project exactly as it is in a |
I ran into the issue today with codelyzer 2.0.1. Here's an example of a failing usage: <div *ngIf="(groups | async).length > 0"></div> This issue is also reproducable with 2.0.0. Here's the version of our Angular components:
|
Codelyzer 3 should has this fixed. |
Awesome 😄 Not sure if we'll upgrade to a beta release but I'll let you know if we run into this again in 3.x |
Minko, I'm using 3.0.1. Should this issue be fixed with that version, or was this something you were waiting to tackle in 4.x? I ask because I'm still getting errors related to async pipe, as well as properties in a component superclass not being found:
If you think this shouldn't be happening, I can try to come up with a repro case. |
Ah I think this is now slated for 4.x, correct? #191 (comment) |
Yes, I haven't published the changes yet because they require a bit more work. I need to migrate to latest version of ngast and align to the changes in the template compiler of Angular. |
Hello,
I have no-access-missing-member error in my project when linting this template:
I have error only when accessing async pipe in inputs (ngif is working fine).
packages:
"codelyzer": "^2.0.0-beta.3",
"tslint": "~4.0.0",
"typescript": "2.0.3"
Do you have any idea?
Thanks,
Pierre
The text was updated successfully, but these errors were encountered: