On the latest build (4.0.0-pre.3), I get the following error on OS X 10.14 (Mojave):
`* ERROR: directory is already being watched! *
Directory: /Users/user/dev/userapp/node_modules/@rails/webpacker/node_modules/.bin/mini-css-extract-plugin
is already being watched through: /Users/name/dev/app/node_modules/mini-css-extract-plugin
MORE INFO: https://github.com/guard/listen/wiki/Duplicate-directory-errors
** ERROR: directory is already being watched! **
Directory: /Users/name/dev/userapp/node_modules/@rails/webpacker/node_modules/.bin/file-loader
is already being watched through: /Users/user/dev/userapp/node_modules/file-loader`
Can't seem to figure out the root cause of it – any ideas? Thanks!
Managed to debug, and get rid of it.
Reason the symptom revealed itself: new version of file-loader dep symlinks to its bin insider webpacker
Root cause: a directory defined within autoload paths (in my case test/mailers/previews) was missing, and instead of skipping that directory, the root of my rails project was watched through ActiveSupport::EventedFileUpdateChecker
@lauri865 that sounds like a rails bug
Please use the latest RC, and feel free to open a new issue with more details if this is still an issue.
I've had a similar situation and modifying the config.file_watcher (see below) works for me:
# /config/environments/development.rb
config.file_watcher = ActiveSupport::FileUpdateChecker
Most helpful comment
I've had a similar situation and modifying the config.file_watcher (see below) works for me: