Nuxt · Imports

NUXT0036Use configured Nuxt auto-imports directly

Flags value imports that duplicate the auto-imports enabled for the current Nuxt project and file.

Why it happens

Nuxt's resolved import registry already accounts for framework APIs, modules, aliases, and scanned app directories. Reusing that registry keeps imports consistent with the project's active configuration.

Fix

Remove the redundant value import. Keep explicit imports when Nuxt auto-importing is disabled or the file is excluded from transformation.

Example

Use configured app utility auto-imports directly

Before

import { formatPrice } from '~/utils/format'

const label = formatPrice(total)

After

const label = formatPrice(total)

Verify the fix

Run only this rule after editing so the report stays focused on the diagnostic you are closing:

pnpm nuxt doctor --rules nuxt/imports/no-explicit-auto-import
Copyright © 2026