We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c66244 commit 23d2a57Copy full SHA for 23d2a57
1 file changed
src/lib/watcher.ts
@@ -78,7 +78,9 @@ export function startWatcher(
78
resolveReady();
79
});
80
81
- watcher.on('error', (err: unknown) => {
+ watcher.on('error', (err: NodeJS.ErrnoException) => {
82
+ // Silently ignore symlink loops — nothing useful to watch there
83
+ if (err.code === 'ELOOP') return;
84
process.stderr.write(`[watcher] Watch error: ${err}\n`);
85
86
0 commit comments