Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.watch with recursion doesn't work on Linux #5

Open
onlurking opened this issue May 6, 2020 · 1 comment · May be fixed by #6
Open

fs.watch with recursion doesn't work on Linux #5

onlurking opened this issue May 6, 2020 · 1 comment · May be fixed by #6

Comments

@onlurking
Copy link

Hello, I'm having a problem running a project which uses filewatcher as a dependency, I'm running node v14.1.0 on the latest version of Manjaro, I've encountered this error:

> [email protected] start /home/onlurking/Documents/band-aid
> ts-node-dev -r ./src/env.ts --respawn src/server.ts --errorOnMissing=true

Using ts-node version 8.6.2, typescript version 3.8.3
TypeError [ERR_FEATURE_UNAVAILABLE_ON_PLATFORM]: The feature watch recursively is unavailable on the current platform, which is being used to run Node.js
    at Object.watch (fs.js:1441:11)
    at add (/home/onlurking/Documents/band-aid/node_modules/filewatcher/index.js:74:34)
    at /home/onlurking/Documents/band-aid/node_modules/filewatcher/index.js:93:5
    at FSReqCallback.oncomplete (fs.js:176:5)

The recursion option is not avalaible on Linux systems according to the node.js fs.watch documentation:

The recursive option is only supported on macOS and Windows. An ERR_FEATURE_UNAVAILABLE_ON_PLATFORM exception will be thrown when the option is used on a platform that does not support it.

I'm working on a fix.

@onlurking
Copy link
Author

@fgnass can you take a look at this please? I've raised this issue because of ts-node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant