I have recently upgraded from Angular 4 to Angular 7 and got into some issues on production build when running ng build --prod
. The error I put in the title is from the node_module dependency. However, I had around 15 pipe filters that I commented throughout the code to make sure I didn't do anything wrong in terms of module importing and dependencies, which now hits the node_module dependency and break the build with the same error.
For instance if I un-comment one of my filters in my code
<td>{{ item.registeredDate | date }}</td>
I get the following error:
ERROR in : Template parse errors:
The pipe 'date' could not be found ("<td>{{[ERROR ->]item.registeredDate | date }}</td>")
I can provide more details.
Thanks,