UPDATE: Identifying the root of the issue has led me to search for a suitable solution.
NOTE: This complication is specific to development mode (not production, and not utilizing AOT).
The "Update" resolution I am implementing can be found here.
In an attempt to resolve an inconsistency with an input in a child component that was failing to update the valid flag on the form, I implemented this solution. Although it functions properly in a basic test project, transferring it to our main project resulted in the following error:
core.es5.js:1020 ERROR Error: Uncaught (in promise): Error: No provider for NgForm!
Error: No provider for NgForm!
at ZoneAwareError (http://192.168.2.34:4200/vendor.bundle.js:153804:33)
...
at <anonymous> [<root>]
The issue is that the same component may be utilized independently from a form, leading to the absence of a provider for NgForm.
I am currently exploring potential ways to dynamically engage the viewProviders member when a form is not present. Any advice or suggestions would be greatly appreciated!