Do not depend on island-disabled plugins
nuxt/plugins/no-island-disabled-dependencysrc/rule-packs/nuxt/rules/nuxt/no-island-disabled-plugin-dependency.ts Upstream docs 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.
Recommended fix
Drop the dependency if the plugin can run without it, or set env: { islands: false } on the dependent plugin too.
Useful links
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() {},
})