I tried to import NgForm in angular with the following import
import { NgForm } from '@angular/forms/src/directives/ng_form';
It searches for node modules folder in src/app which is why it returns an error. The node modules folder is 2 levels up from the app folder.
However when I try the following path
import { NgForm } from '@angular/forms';
It works no problem. Why is this? I use vscode, so the first path is the default way that VScode auto-imported NgForm.