I have an Avatar component with an
<img> tag. It’s working fine in development mode, but when I try to build the project then Next.js throws the following error:
Failed to compile. ./components/Avatar.js 59:9 Error: Do not use <img>. Use Image from 'next/image' instead. See https://nextjs.org/docs/messages/no-img-element. @next/next/no-img-element
Is there a way to force next.js to let me use the regular
<img> tag in production mode?