import Image from 'next/image'; does not support onError ?? #23485
Unanswered
BunniesWork
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
does next Image support onError ???
example 👍🏼 :
onError={(e)=>{e.target.onerror=null,e.target.src='/default/error.png'}}
it works fine in
<img src="/image.png"/>
Beta Was this translation helpful? Give feedback.
All reactions