yuanchuan / node-watch

A wrapper and enhancements for fs.watch
https://npm.im/node-watch
MIT License
341 stars 44 forks source link

linux and recursively with node 14 throws TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM] #94

Closed findoff closed 4 years ago

findoff commented 4 years ago

Hello, i found error with node 14

Simple example

import watch from 'node-watch';
watch('test', {recursive: true}, ()=>{
        console.log('changed');
});

Info about error

https://nodejs.org/dist/latest-v14.x/docs/api/fs.html#fs_caveats

yuanchuan commented 4 years ago

Thanks for reporting. It seems the recursive option must be removed internally