Skip to content

Angular Material doesn't give clear information about mat-form-field must contain a MatFormFieldControl #21109

@wizardnet972

Description

@wizardnet972

Angular Material doesn't give clear information about where in the HTML the problem is, instead I got message: "mat-form-field must contain a MatFormFieldControl".

This is uncomfortable because I have component with a 70+ material components, including many inputs, select, datepicker, autocomplete, and I not sure where in my code I don't have matInput for example.

The code I got from my client and in the component, I have 4000+ lines of code and the problem is the message not say where I missing this attribute.

So this is very frustrating. please consider making a change with this.

I suggest something like "input( 30:2) missing matInput" when I wrap inside mat-form-field (and so').

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions