Recently, I made adjustments to my login component to align more closely with Angular standards. However, upon testing, I encountered errors of this kind:
Cannot read property 'subscribe' of undefined
After using console.log for debugging purposes, I realized that regardless of the input in my onSubmit() function, it incorrectly interprets a valid form.
Just for your information - The login form functions correctly when used practically. The issue only arises during testing.