Currently utilizing Angular Forms version 2.0.0, I am in the process of creating a contact us modal that contains a contact form.
Upon loading the ContactComponent, an exception is thrown:
EXCEPTION: this.form._updateTreeValidity is not a function
https://i.sstatic.net/AXg1p.jpg
After researching various Stack posts, it seems that initializing the form object using FormGroup instead of FormBuilder in the component constructor is now preferred with the new API, so I have made the necessary updates.
I have imported ReactiveFormsModule and FormsModule along with all the relevant form components, and there doesn't appear to be any module-related issues.
Although my TypeScript code compiles without errors and Visual Studio Intellisense recognizes all FormGroup functions correctly, I'm encountering this issue at runtime. Why is this happening?...
Here is my code:
...