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

Subdirectories are not watched in dev environment for Linux OS #13140

Closed
Rahmon opened this issue Dec 30, 2018 · 1 comment
Closed

Subdirectories are not watched in dev environment for Linux OS #13140

Rahmon opened this issue Dec 30, 2018 · 1 comment
Labels
[Type] Build Tooling Issues or PRs related to build tooling

Comments

@Rahmon
Copy link
Contributor

Rahmon commented Dec 30, 2018

Describe the bug
The recursive option in fs.watch is only supported on macOS and Windows. So on Linux the subdirectories aren't watched when i run npm run dev.

fs.watch( path.resolve( p, 'src' ), { recursive: true }, ( event, filename ) => {

To Reproduce
Steps to reproduce the behavior:

  1. On Linux OS clone the project.
  2. Run npm i and npm run dev.
  3. Make some change in file: packages/block-library/src/paragraph/index.js
  4. Change isn't watched (nothing happens)

Expected behavior
"watch" to work on Linux too.. 😞 .

Possible solution
I've used node-watch package.

Desktop (please complete the following information):

  • OS: Fedora 29
  • Version 4.7.1
@ntwb ntwb added the [Type] Build Tooling Issues or PRs related to build tooling label Jan 1, 2019
@gziolo
Copy link
Member

gziolo commented Jan 31, 2019

It was fixed in #13448.

@gziolo gziolo closed this as completed Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Build Tooling Issues or PRs related to build tooling
Projects
None yet
Development

No branches or pull requests

3 participants