I am using Nextjs ,a React-based framework, and i am trying show the logo.png image in Image
component which is provided by Next.js.
I have this folder: public/img
and this is my code:
<Image
src={'/img/logo.png'}
width='154'
height='82'
alt='logo'
layout='responsive'
priority={true}
/>
I get this error in the console:
The resource
http://localhost:3001/_next/image?url=%2Fimg%2Flogo.png&w=640&q=75 was
preloaded using link preload but not used within a few seconds from
the window's load event. Please make sure it has an appropriateas
value and it is preloaded intentionally.
any help ?