Nuxt · NUXT0009

Provide alt text for Nuxt images

Checks that Nuxt project code includes the alt needed for predictable behavior.
NUXT0009vite-doctor/nuxt-imageimageserrorSuggestion

Run this rule

pnpm nuxt doctor --rules nuxt-image/require-alt

Why it matters

Images affect accessibility, layout stability, and performance. Nuxt Image gives the framework enough information to optimize them.

Add meaningful alt text, or an empty alt for decorative images.

Example

Add alt

Before

<template>
  <img src="/hero.png">
</template>

After

<template>
  <NuxtImg src="/hero.png" alt="Hero" width="1200" height="630" />
</template>
Copyright © 2026