All of a sudden this error occurs in my component:
"Uncaught (in promise): TypeError: Cannot read property 'setParent' of null"
I will try to reproduce in a plunkr, in the meantime maybe someone can throw me some hints?
Solved it:
I was switching from a model-driven form to a template-driven form. I missed to remove one occurance of a "formControlName" on an input-element.
The "formControlName" on the input-element referenced a formControl that did not exist anymore on the component.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With