0

I have an Angular libraries project with a component in there that includes this simple line for HTML:

<img src="../../../assets/logos/Logo.png" />

Any unit test that is run that includes this component shows an error in the browsers dev tools console. The error is:

Failed to load resource: the server responded with a status of 404 (Not Found) :9876/assets/logos/Logo.png:1

What can I do to suppress this error or stop the image loading?

The unit tests work fine with the error.

Sun
  • 4,458
  • 14
  • 66
  • 108
  • This whole thread should help you: https://stackoverflow.com/a/58291420/7365461. I usually live with those 404 warnings though. – AliF50 Feb 07 '23 at 14:23

0 Answers0