Docz attempting to watch files during production build
See original GitHub issueBug Report
Docz is watching for filesystem changes even while building the production build. This causes our CI pipeline to fail. I can’t really configure the amount of file watchers in the pipeline.
The error thrown is:
$ docz build
events.js:173
throw er; // Unhandled 'error' event
^
Error: ENOSPC: System limit for number of file watchers reached, watch '/tmp/build/de0ad76f/oos-frontend-platforms/packages/oos-ui/doczrc.js'
at FSWatcher.start (internal/fs/watchers.js:165:26)
at Object.watch (fs.js:1275:11)
at createFsWatchInstance (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:42:15)
at setFsWatchListener (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:85:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:237:14)
at FSWatcher.NodeFsHandler._handleFile (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:264:21)
at FSWatcher.<anonymous> (/tmp/build/de0ad76f/oos-frontend-platforms/node_modules/docz-core/node_modules/chokidar/lib/nodefs-handler.js:495:21)
at FSReqCallback.oncomplete (fs.js:160:5)
To Reproduce
Run docz with no file watchers available
docz build # when no file watcher available
Environment
- OS: Concourse CI pipeline on docker image
node:latest
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Docz attempting to watch files during production build #650
Bug Report Docz is watching for filesystem changes even while building the production build. This causes our CI pipeline to fail.
Read more >webpack --watch isn't compiling changed files - Stack Overflow
If your code isn't being recompiled, try increasing the number of watchers (in Ubuntu): echo fs.inotify.max_user_watches=524288 | sudo tee -a ...
Read more >API - esbuild
#Build API. The build API call operates on one or more files in the file system. This allows the files to reference each...
Read more >Build troubleshooting tips - Netlify Docs
This article provides troubleshooting tips for failing builds in Netlify's build service. In case your build fails on Netlify, first make sure it...
Read more >Watching a Directory for Changes (The Java™ Tutorials ...
See JDK Release Notes for information about new features, enhancements, ... Play with creating, deleting, and editing files in the test directory.
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 FreeTop 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
Top GitHub Comments
This is not fixed for me
Fixed, will be released in the next version.