nitrojs / nitrojs/nitro

Plugins directory is not watched

Open
#3,410 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug enhancement v2
Dominant language
TypeScript
Stars
11.2k
Forks
899
Avg merge
2d 24m
Merged PRs (30d)
40

Description

Environment

nitro v2
node 22

Reproduction

https://stackblitz.com/edit/unjs-nitro-starter-e2qqum9j?file=.gitignore&title=Nitro%20Starter

  • add the dir plugins in the server dir
Describe the bug

nitro doesn't reload in dev mode when a folder is being added into one of the scanDirs

Additional context

original issue https://github.com/nuxt/nuxt/issues/32425

Logs

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproduction and inspect Nitro's dev-mode watcher handling for scanDirs, including the server directory and newly added plugins folder. Done means creating a folder under a configured scanDir triggers the expected development reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.