Angular failed to load image

34 Views Asked by At

I used images in my project, I changed the HTML structure and converted all the images in the assets folder. Use WebP images And they all work well when the page loads. BUT, when switching to another route, many errors appear in the console. how to fix this? Another page uses a lot of the same images, as far as I understand, it says that it doesn’t load them, but how can I ensure that these messages don’t appear in the console..

enter image description here

<picture>
    <source type="image/webp"
            srcset="./../../../../../assets/images/summerVersion/restaurant/DSC_0380.webp">
    <source type="image/jpeg"
            srcset="./../../../../../assets/images/summerVersion/restaurant/DSC_0380.jpg">
    <img class="img-fluid"
         src="./../../../../../assets/images/summerVersion/restaurant/DSC_0380.jpg"
         alt="Фото ресторану">
</picture>

0

There are 0 best solutions below