Known Issues¶
fs.watch¶
On IBM i systems, this feature is not supported.
This is also documented in the caveats
section of the fs.watch
documentation.
When using various Node.js tools for watching a filesystem and hot-reloading on file changes, many use Chokidar which relies on fs.watch, which is not supported on IBM i. This results in error messages such as:
Watchpack Error (watrcher): Error: ENONSYS: function not implmemented, watch
Error from chokidar src/api/modules): error enosys: function not implemented, watch
As a workaround, Chokidar supports polling, which can be enabled by setting the
CHOKIDAR_USEPOLLING
environment variable to 1.
As of chokidar >= 3.5.2
, the default is to use polling on IBM i and it should
work out of the box.
As of nodemon >= 3.0.1
, the default is to use polling on IBM i and it should
work out of the box.