You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 1, 2020. It is now read-only.
// If a file isn't found (probably other scenarios too),
58
+
// Chokidar watches don't always trigger the ready or error events
59
+
// so set a timeout, and clear it if they do fire
60
+
// otherwise, just reject the promise and log an error
61
+
consttimeoutId=setTimeout(()=>{
62
+
letfilesWatchedString: string=null;
63
+
if(typeofwatcher.paths==='string'){
64
+
filesWatchedString=watcher.paths;
65
+
}elseif(Array.isArray(watcher.paths)){
66
+
filesWatchedString=watcher.paths.join(', ');
67
+
}
68
+
//Logger.error(`A watch configured to watch the following paths failed to start. It likely that a file referenced does not exist: ${filesWatchedString}`);
69
+
reject(newBuildError(`A watch configured to watch the following paths failed to start. It likely that a file referenced does not exist: ${filesWatchedString}`));
70
+
},3000);
55
71
prepareWatcher(context,watcher);
56
72
57
73
if(!watcher.paths){
@@ -105,13 +121,17 @@ function startWatcher(index: number, watcher: Watcher, context: BuildContext, wa
0 commit comments