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.

Can't bind to 'errorStateMatcher' since it isn't a known property of 'input'

See original GitHub issue

Bug, feature request, or proposal:

Seems like a bug…

What is the expected behavior?

For errorStateMatcher to bind to an input.

What is the current behavior?

Can't bind to 'errorStateMatcher' since it isn't a known property of 'input'

What are the steps to reproduce?

Using angular material beta 12 and angular 4.4.4

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 4.4.4 Material 2.0.0-beta.12

Is there anything else we should know?

Just upgraded from beta 11 to beta 12 and with it had to upgrade to angular 4.4.4 but now for some reason I get Can't bind to 'errorStateMatcher' since it isn't a known property of 'input' in the browser console upon navigating to the app.

I have both the forms module and reactive forms module in my application.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
willshowellcommented, Oct 11, 2017

mdInput -> matInput

Same goes for md-form-field

1reaction
douglasrleecommented, Oct 11, 2017

I am still getting the same error using:

validate: ErrorStateMatcher = {
  isErrorState: (control: FormControl) => {
    return true;
  }
};

with

<md-form-field>
  <input
    mdInput
    placeholder='{{ label }}'
    [(ngModel)]='inputValue'
    [errorStateMatcher]='validate' />
  <md-error>
    {{ errorMessage }}
  </md-error>
</md-form-field>

I feel like I am missing something…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't bind to 'errorStateMatcher' since it isn't a known property ...
I had to add matInput attribute to the input element.
Read more >
can't bind to 'formcontrolname' since it isn't a known property ...
In your HomeComponent template, you are trying to bind to an input on the CreateReportCardForm component that doesn't exist. In CreateReportCardForm, these are ......
Read more >
Can't bind to 'ngModel' since it isn't a known property of 'input ...
✓ Error NG8002: Can't bind to 'ngModel' since it isn't a known property of 'input '. Angular solved.
Read more >
Can't bind to ngModel since it isn't a known property of input
Have you ever tried to bind a property or a directive to one of your components and get this error? Or any of...
Read more >
angular/material - Gitter
... Can't bind to 'matDatePicker' since it isn't a known property of 'input'. ... a limitation on which mat- components that support errorStateMatcher?...
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