Having recently created a new Angular app and converted it to Angular Universal, I encountered an issue when running the project using npm run dev:ssr. The error displayed in the terminal is as follows:
ERROR Error: Uncaught (in promise): Error: NG04002
Error: NG04002
at Recognizer.noMatchError (D:\MyProjects\PROJECTNAME\dist\PROJECTNAME\server\main.js:1:2343326)
at D:\MyProjects\PROJECTNAME\dist\PROJECTNAME\server\main.js:1:2343696
at D:\MyProjects\PROJECTNAME\dist\PROJECTNAME\server\main.js:1:514891
...
While the project compiles successfully and functions correctly, this error persists in the terminal.
I have attempted to search for solutions online without success, as most of the suggestions provided were not relevant to my specific issue.