Reproduction (minimal)
mkdir -p /tmp/.my-hidden-folder
cd /tmp/.my-hidden-folder
pnpm dlx nuxi@latest init -t minimal repro-hidden
cd repro-hidden
pnpm install
pnpm dev
Actual
Nuxt starts, then crashes with:
EMFILE: too many open files, watch
Control
Same project in a non-hidden path works:
cd /tmp
pnpm dlx nuxi@latest init -t minimal repro-visible
cd repro-visible
pnpm install
pnpm dev
Scope
With devtools: { enabled: false } in nuxt.config.ts, hidden-path repro runs normally.
Why this is important
Codex worktrees are commonly under hidden paths like ~/.codex/worktrees/.... The same happens for Claude Code.
This makes Nuxt dev fail out of the box in a common AI/agent workflow.
Related context
Potentially related watcher/chokidar ecosystem discussion: nuxt/nuxt#31897 (not the same repro).
Reproduction (minimal)
Actual
Nuxt starts, then crashes with:
EMFILE: too many open files, watchControl
Same project in a non-hidden path works:
Scope
With
devtools: { enabled: false }innuxt.config.ts, hidden-path repro runs normally.Why this is important
Codex worktrees are commonly under hidden paths like
~/.codex/worktrees/.... The same happens for Claude Code.This makes Nuxt dev fail out of the box in a common AI/agent workflow.
Related context
Potentially related watcher/chokidar ecosystem discussion: nuxt/nuxt#31897 (not the same repro).