Closed artfulrobot closed 2 years ago
I’m experiencing something similar:
Error: EISDIR: illegal operation on a directory, read
at readAndCache.then.error (/Users/austin/dev/kinetic/lowes-web/assets/node_modules/brunch/lib/fs_utils/file_list.js:147:15)
at <anonymous>:null:null
(node:82069) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:82069) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:82069) UnhandledPromiseRejectionWarning: BrunchError: Failed to read file css.
Error: EISDIR: illegal operation on a directory, read
at readAndCache.then.error (/Users/austin/dev/kinetic/lowes-web/assets/node_modules/brunch/lib/fs_utils/file_list.js:147:15)
at <anonymous>:null:null
(node:82069) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:82069) UnhandledPromiseRejectionWarning: BrunchError: Failed to read file js.
Error: EISDIR: illegal operation on a directory, read
at readAndCache.then.error (/Users/austin/dev/kinetic/lowes-web/assets/node_modules/brunch/lib/fs_utils/file_list.js:147:15)
at <anonymous>:null:null
(node:82069) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 3)
(node:82069) UnhandledPromiseRejectionWarning: BrunchError: Failed to read file static.
Error: EISDIR: illegal operation on a directory, read
at readAndCache.then.error (/Users/austin/dev/kinetic/lowes-web/assets/node_modules/brunch/lib/fs_utils/file_list.js:147:15)
at <anonymous>:null:null
(node:82069) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
Brunch is trying to readAndCache
a directory. I’m on a brunch-based Phoenix project using yarn 1.15.2, node v8.15.1 and brunch 2.10.9 (although 2.10.17 exhibits the same behaviour). The directories being read are specified explicitly in brunch-config.js
as paths.watched
.
Description
While having
brunch watch
running, often when I save a file Brunch gets confused and in a never ending compilation loop.Expected behavior
Should just compile like normal
Actual behavior
Before the compilation loop I see the following error:
Environment
package.json
contentsbrunch config contents
Other useful files, when present (log,
bower.json
etc.)