You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have width, height and position: relative for the div element where tag img exists. Ang img has fill property.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
NG02952: The NgOptimizedImage directive (activated on an <img> element with the `ngSrc="assets/img/path1/path2/imgName.png"`) has detected that the height of the fill-mode image is zero. This is likely because the containing element does not have the CSS 'position' property set to one of the following: "relative", "fixed", or "absolute". To fix this problem, make sure the container element has the CSS 'position' property defined and the height of the element is not zero.
Please provide the environment you discovered this bug in (run ng version)
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
Yes
Description
When I use this part of code with a long path to the image (
/assets/img/path1/path2/imgName.png
):I got a warning (beloved)
But when I copy this image to the short path (
/assets/img/imgName.png
) then I don't see this warning anymore:I have
width
,height
andposition: relative
for the div element where tag img exists. Ang img hasfill
property.Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: