Answers for "has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead."

0

has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead.

Stackoverflow.com - Nextjs Image an issue with "loader" property that does not implement width

If you're not applying any optimisations through a 3rd party cloud provider 
(your loader isn't doing anything), you might as well just use unoptimized={true} 
on the Image. – juliomalves

Example:

<Image
  loader={myLoader} src={`https://source.unsplash.com/${width}x${height}/?office`}
  width={width}
  height={height}
  unoptimized={true}
/>
Posted by: Guest on March-22-2022

Code answers related to "has a "loader" property that does not implement width. Please implement it or use the "unoptimized" property instead."

Browse Popular Code Answers by Language