Sometimes process can fail to restart
See original GitHub issueI’ve noticed that when many restarts are triggered in quick succession (for example, by running a git pull
), then an error can come up and the watch process will stop monitoring.
Error: Cannot find module './express/app'
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/patrick/project/js/config/main.js:7:17)
at Module._compile (module.js:556:32)
at babelWatchLoader (/Users/patrick/project/node_modules/babel-watch/runner.js:50:13)
at Object.require.extensions.(anonymous function) [as .js] (/Users/patrick/project/node_modules/babel-watch/runner.js:61:7)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
fs.js:786
return binding.writeBuffer(fd, buffer, offset, length, position);
^
Error: EPIPE: broken pipe, write
at Error (native)
at Object.fs.writeSync (fs.js:786:20)
at handleFileLoad (/Users/patrick/project/node_modules/babel-watch/babel-watch.js:279:30)
at handleFileLoad (/Users/patrick/project/node_modules/babel-watch/babel-watch.js:172:7)
at ChildProcess.app.on (/Users/patrick/project/node_modules/babel-watch/babel-watch.js:273:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at process.nextTick (internal/child_process.js:744:12)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Normally there is no problem with importing ./express/app
- it appears to just be a transient error while the filesystem is changing. However, after this error comes up I need to kill babel-watch and restart it in order for monitoring to continue
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Computer Stuck Restarting: 7 Ways to Fix it - Windows Report
Problems with the background processes – The background processes can often be unresponsive or conflict with the restart process, leading to ...
Read more >Why Does Restarting Seem to Fix Most Computer Problems?
Restarting your computer, router, phone, etc., is often the fix for even the most annoying of problems, but why? Here's more on this...
Read more >How to Fix Long Restart Problem? - Computer technician blog
Shutting down or restarting your computer is a simple process that usually takes just a few seconds. However, sometimes, it may take much...
Read more >How to fix a Windows 10 boot loop | TechTarget
If a Windows desktop is stuck in an infinite reboot loop, as an IT professional, you must understand why it is happening and...
Read more >Quickly Solve - Your PC Ran into a Problem and Needs to ...
Faulty driver can also bring "your PC ran into a problem and needs to restart" error. Please make sure all your device drivers...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve noticed that this issue still appears for me in the latest version
This was released in
7.1.0
, so I’m closing this.