Mat Form Field Must Contain A Matformfieldcontrol

`matformfield` debe contener un `MatFormFieldControl`

Mat Form Field Must Contain A Matformfieldcontrol. Angular material supports only a handful of input types and file type is not one of them. If your form field contains a native or element, make sure you've added the matinput directive to it and have imported matinputmodule.

`matformfield` debe contener un `MatFormFieldControl`
`matformfield` debe contener un `MatFormFieldControl`

Import { async, componentfixture, testbed } from '@angular/core/testing'; This error occurs when you have not added a form field control to your form field. You can do like this. The below code will not work. The problem is here : You need to add file type outside of. I am currently looking deeper at some of the warnings i am getting in my jasmine/karma tests and when i tried adding the matformfieldmodule and matinputmodule as follows: Choose an option modalidade .</p> If your form field contains a native or element, make sure you've added the matinput directive to it and have imported matinputmodule. Angular material supports only a handful of input types and file type is not one of them.

You can do like this. This error occurs when you have not added a form field control to your form field. The below code will not work. Import { async, componentfixture, testbed } from '@angular/core/testing'; You can check more at: I am currently looking deeper at some of the warnings i am getting in my jasmine/karma tests and when i tried adding the matformfieldmodule and matinputmodule as follows: You need to add file type outside of. The problem is here : You can do like this. Choose an option modalidade .</p> Angular material supports only a handful of input types and file type is not one of them.