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.

md-input-container is not working

See original GitHub issue

Hi,

I just npm installed material. In my package.json this version is stated: “@angular/material”: “^2.0.0-alpha.11-3”

When I try using the md-input-container as it is described here (https://github.com/angular/material2/blob/master/src/lib/input/README.md), I get this error message:

zone.js:388Unhandled Promise rejection: Template parse errors:
'md-input-container' is not a known element

However, when I use the deprecated md-input it works.

So what’s wrong? Do I need to use another version of @angular/material?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:8

github_iconTop GitHub Comments

24reactions
starksdscommented, Dec 19, 2016

How are we supposed to use this library if the documentation can’t be trusted?

12reactions
EvgenStudentcommented, Apr 19, 2017

I solved the same problem. I just imported “MdInputModule” from “@angular/material

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular Material 2 md-input-container not working
However, none of what I tried has worked. I'm getting this issue: 'md-input-container' is not a known element. Console issue. HTML:
Read more >
Directives - - - md-input-container - AngularJS Material
Input and textarea elements will not behave properly unless the md-input-container parent is provided.
Read more >
md-input-container - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >
Angular Material Inputs - Javatpoint
The angular material input-container is a used to contains any <input> or <textarea> element as a child. It also supports error handling using...
Read more >
Input | Angular Material
This error is thrown when you attempt to set an input's type property to a value that isn't supported by the matInput directive....
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