From a2d313fe1b9ac254fd0fef9d9d6eb0c0f4d7c438 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:30:14 +0000 Subject: [PATCH] Fix: ignore node_modules and .git in chokidar watcher to prevent ENOSPC error Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/loaders/deps.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/back/loaders/deps.ts b/back/loaders/deps.ts index cb2ed171..3500f9b0 100644 --- a/back/loaders/deps.ts +++ b/back/loaders/deps.ts @@ -65,7 +65,11 @@ export default async (src: string = 'deps') => { const source = path.join(config.rootPath, src); const watcher = chokidar.watch(source, { - ignored: /(^|[\/\\])\../, // ignore dotfiles + ignored: [ + /(^|[\/\\])\../, // ignore dotfiles + '**/node_modules/**', // ignore node_modules + '**/.git/**', // ignore .git + ], persistent: true, });