I have a little web app with Angular 5 and out of a sudden I am getting this strange error message in my browser console:
ncaught Error: Template parse error
In case someone is still having this error while using the Angular CLI, i was only importing the ReactiveFormsModule
, then i imported and registered the FormsModule
to fix the error. I was serving the app with ng serve
when i made changes to the module class and i was still having the error even after importing and registered the FormsModule
. To fix the error i had to stop serving and start again in order to recompile the module class.