Nuxt · NUXT0104

Do not depend on island-disabled plugins

Finds a plugin whose dependsOn names a plugin that sets env: { islands: false }, in an app that renders server component islands.
NUXT0104vite-doctor/nuxtpluginswarnSuggestion

Run this rule

pnpm nuxt doctor --rules nuxt/plugins/no-island-disabled-dependency

Why it matters

When Nuxt renders an island it skips plugins with env: { islands: false }, but a plugin that depends on one still waits for it. The dependency never resolves, so the dependent plugin silently never runs in island renders, and whatever it provides is missing there. Doctor reports only object-syntax plugins with unique literal names, and only when experimental.componentIslands is not turned off and the app has an island component or a top-level server page that Nuxt registers as an island. Doctor requires current registrations from nuxt prepare with vite-doctor/nuxt and records an evidence gap when it cannot verify them. Client-only plugins are not reported because islands render on the server.

Drop the dependency if the plugin can run without it, or set env: { islands: false } on the dependent plugin too.

Example

Opt the dependent plugin out of islands too

Before

// app/plugins/auth.ts
export default defineNuxtPlugin({
  name: 'auth',
  env: { islands: false },
  setup() {},
})

// app/plugins/api.ts
export default defineNuxtPlugin({
  name: 'api',
  dependsOn: ['auth'],
  setup() {},
})

After

// app/plugins/api.ts
export default defineNuxtPlugin({
  name: 'api',
  dependsOn: ['auth'],
  env: { islands: false },
  setup() {},
})
Copyright © 2026