From 4cda6658867d728b75b72d0ee3c9ca640652376c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:26:41 +0000 Subject: [PATCH 1/4] Initial plan 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 2/4] 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, }); From 3f880e6610f839de4134467ad935e5e14942acf7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:34:00 +0000 Subject: [PATCH 3/4] Update chokidar ignore patterns to use regex for better reliability Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/loaders/deps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/loaders/deps.ts b/back/loaders/deps.ts index 3500f9b0..02977619 100644 --- a/back/loaders/deps.ts +++ b/back/loaders/deps.ts @@ -67,8 +67,8 @@ export default async (src: string = 'deps') => { const watcher = chokidar.watch(source, { ignored: [ /(^|[\/\\])\../, // ignore dotfiles - '**/node_modules/**', // ignore node_modules - '**/.git/**', // ignore .git + /node_modules/, // ignore node_modules + /\.git/, // ignore .git ], persistent: true, }); From 5a66cdbf17873fe9d8a9d1666149d08a8d39bcfa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Jan 2026 11:36:08 +0000 Subject: [PATCH 4/4] Use properly anchored regex patterns for node_modules and .git Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- back/loaders/deps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/loaders/deps.ts b/back/loaders/deps.ts index 02977619..baa69185 100644 --- a/back/loaders/deps.ts +++ b/back/loaders/deps.ts @@ -67,8 +67,8 @@ export default async (src: string = 'deps') => { const watcher = chokidar.watch(source, { ignored: [ /(^|[\/\\])\../, // ignore dotfiles - /node_modules/, // ignore node_modules - /\.git/, // ignore .git + /(^|[\/\\])node_modules([\/\\]|$)/, // ignore node_modules + /(^|[\/\\])\.git([\/\\]|$)/, // ignore .git ], persistent: true, });