Whenever I add an image into
Resources > Assets > Images folder I get an error and browser sync / webpack stops working.
If I remove the image from the folder it starts working again.
I am not sure where to start to debug this one, any help?
Thanks,
/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/copy-globs-webpack-plugin/index.js:208 Object.keys(this.files).filter(absoluteFrom => !compilation.fileDependencies.has(absoluteFrom)).forEach(absoluteFrom => compilation.fileDependencies.add(absoluteFrom)); ^ TypeError: compilation.fileDependencies.has is not a function at Object.keys.filter.absoluteFrom (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/copy-globs-webpack-plugin/index.js:208:86) at Array.filter (<anonymous>) at module.exports.afterEmitHandler (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/copy-globs-webpack-plugin/index.js:208:33) at Compiler.applyPluginsAsyncSeries1 (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/tapable/lib/Tapable.js:222:13) at Compiler.afterEmit (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/webpack/lib/Compiler.js:361:9) at require.forEach.err (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/webpack/lib/Compiler.js:350:15) at /Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/webpack/node_modules/async/dist/async.js:473:16 at iteratorCallback (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/webpack/node_modules/async/dist/async.js:1064:13) at /Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/webpack/node_modules/async/dist/async.js:969:16 at MemoryFileSystem.writeFile (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/memory-fs/lib/MemoryFileSystem.js:328:9) at writeOut (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/webpack/lib/Compiler.js:339:28) at Immediate._onImmediate (/Users/xxxxx/Code/xxxxx/wp-content/themes/xxxxx/node_modules/memory-fs/lib/MemoryFileSystem.js:288:4) at runCallback (timers.js:810:20) at tryOnImmediate (timers.js:768:5) at processImmediate [as _immediateCallback] (timers.js:745:5) error Command failed with exit code 1.