We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519ef0e commit 8d382f4Copy full SHA for 8d382f4
.changeset/chubby-mugs-dream.md
@@ -0,0 +1,5 @@
1
+---
2
+'myst-cli': patch
3
4
+
5
+Catch error states of chokidar
packages/myst-cli/src/build/site/watch.ts
@@ -25,7 +25,10 @@ function watchConfigAndPublic(
25
ignoreInitial: true,
26
awaitWriteFinish: { stabilityThreshold: 100, pollInterval: 50 },
27
})
28
- .on('all', watchProcessor(session, null, serverReload, opts));
+ .on('all', watchProcessor(session, null, serverReload, opts))
29
+ .on('error', (error) => {
30
+ session.log.error(`Error watching config and public: ${error}`);
31
+ });
32
}
33
34
function triggerProjectReload(
@@ -201,7 +204,10 @@ export function watchContent(
201
204
202
205
cwd: proj.path,
203
206
- .on('all', watchProcessor(session, proj, serverReload, opts));
207
+ .on('all', watchProcessor(session, proj, serverReload, opts))
208
209
+ session.log.error(`Error watching project ${proj.path}: ${error}`);
210
211
});
212
// Watch the myst.yml
213
watchConfigAndPublic(session, serverReload, opts);
0 commit comments