The property "async" that you're trying to access does not exist in the class declaration.
See original GitHub issueBug Report or Feature Request (mark with an x)
- [x] bug report
Versions.
@angular/cli: 1.1.0
node: 7.10.0
os: linux x64
@angular/animations: 4.1.3
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/flex-layout: 2.0.0-beta.8
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/material: 2.0.0-beta.5
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.1.0
@angular/compiler-cli: 4.1.3
Repro steps.
Use the async pipe in templates and run ng lint.
The log given by the failure.
I get this error on html file using the async pipe:
The property "async" that you're trying to access does not exist in the class declaration.
Desired functionality.
I should not get this error.
Mention any other details that might be useful.
This was a problem for some time in the past, then it disappeared, and came back again with latest codelizer in angular-cli 1.1.0. See https://github.com/mgechev/codelyzer/issues/190 for a discussion on the matter, but it’s not clear what is the solution and now that codelizer 3.0.1 is used by default, it is now a problem for all users of angular-cli!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Async/Await Error Handling - Beginner JavaScript - Wes Bos
We will talk about error handling strategies for async await in this lesson. ... doesNotExist() , you will see we still get the...
Read more >How to call an async method from a getter or setter?
An asynchronous method that returns a value. In this case, change the property to an async method. · A value that can be...
Read more >Async return types (C#) - Microsoft Learn
Any type that has an accessible GetAwaiter method. The object returned by the GetAwaiter method must implement the System.Runtime.
Read more >ReferenceError: reference to undefined property "x" - JavaScript
The script attempted to access an object property which doesn't exist. There are two ways to access properties; see the property accessors ...
Read more >Effective Dart: Design - Dart programming language
Use the same name for the same thing, throughout your code. If a precedent already exists outside your API that users are likely...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@filipesilva ok, cool. For the record, I never could clearly understand which combination of cli, tslint and codelyzer was exhibiting the problem. On my side, I just disabled the
no-access-missing-memberrule (which applies only to templates).This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.