question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The property "async" that you're trying to access does not exist in the class declaration.

See original GitHub issue

Bug 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
victornoelcommented, Jun 6, 2017

@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-member rule (which applies only to templates).

0reactions
angular-automatic-lock-bot[bot]commented, Sep 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found