6 │
![]()
` from `next/image` instead.
7 │ src="/test.png"
+ · ─────┬─────
+ · ╰── Use a static image import instead.
+ 8 │ alt="Test picture"
╰────
- help: See https://nextjs.org/docs/messages/no-img-element
+ help: Consider using `
` from `next/image` or a custom image loader to automatically optimize images.
+ See https://nextjs.org/docs/messages/no-img-element
- ⚠ eslint-plugin-next(no-img-element): Prevent usage of `
![]()
` element due to slower LCP and higher bandwidth.
+ ⚠ eslint-plugin-next(no-img-element): Using `
![]()
` could result in slower LCP and higher bandwidth.
╭─[no_img_element.tsx:5:17]
4 │ return (
5 │
![]()
` from `next/image` instead.
6 │ src="/test.png"
+ · ─────┬─────
+ · ╰── Use a static image import instead.
+ 7 │ alt="Test picture"
╰────
- help: See https://nextjs.org/docs/messages/no-img-element
+ help: Consider using `
` from `next/image` or a custom image loader to automatically optimize images.
+ See https://nextjs.org/docs/messages/no-img-element
+
+ ⚠ eslint-plugin-next(no-img-element): Using `
![]()
` could result in slower LCP and higher bandwidth.
+ ╭─[no_img_element.tsx:4:7]
+ 3 │ export const MyComponent = () => (
+ 4 │

+ · ─┬─
+ · ╰── Use `
` from `next/image` instead.
+ 5 │ );
+ ╰────
+ help: Consider using `
` from `next/image` or a custom image loader to automatically optimize images.
+ See https://nextjs.org/docs/messages/no-img-element