My current project in Angular was functioning properly until recently. I am facing an issue where the images are not being displayed on the browser when I run ng serve, resulting in a 404 error. Interestingly, everything else seems to be working fine without any changes made to the code. Additionally, even the angular icon (favicon) on the tab of the browser is not visible.
I have tried updating node-modules and reinstalling Angular, but this did not resolve the problem. The image file and path are correct, yet the 404 error continues to persist.
http://localhost:4200/assets/img/single_user.png 404 (Not Found)
Image (async)
push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.setAttribute @ platform-browser.js:1087
push../node_modules/@angular/core/fesm5/core.js.DebugRenderer2.setAttribute @ core.js:11462
createElement @ core.js:8134
...
(anonymous) @ main.js:1