gajus / write-file-webpack-plugin

Forces webpack-dev-server to write bundle files to the file system.
Other
527 stars 54 forks source link

handleAfterEmit throws error #58

Closed theDevelopper closed 6 years ago

theDevelopper commented 6 years ago

Latest master throws errors with webpack 4.6.0

「wds」: Project is running at http://0.0.0.0:8080/
「wds」: webpack output is served from /
「wds」: Content not from webpack is served from ./dist
「wds」: 404s will fallback to /index.html
「wdm」: TypeError: callback is not a function
    at handleAfterEmit (/some/random/path/node_modules/write-file-webpack-plugin/dist/WriteFileWebpackPlugin.js:203:7)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/some/random/path/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:9:1)
    at AsyncSeriesHook.lazyCompileHook [as _callAsync] /some/random/path/node_modules/tapable/lib/Hook.js:35:21)
    at asyncLib.forEach.err (/some/random/path/node_modules/webpack/lib/Compiler.js:298:27)
    at done (/some/random/path/node_modules/neo-async/async.js:2854:11)
    at /some/random/path/node_modules/neo-async/async.js:2805:7
    at MemoryFileSystem.writeFile (/some/random/path/node_modules/memory-fs/lib/MemoryFileSystem.js:328:9)
    at writeOut (/some/random/path/node_modules/webpack/lib/Compiler.js:284:29)
    at Immediate._onImmediate (/some/random/path/node_modules/memory-fs/lib/MemoryFileSystem.js:288:4)
    at runCallback (timers.js:756:18)
    at tryOnImmediate (timers.js:717:5)
    at processImmediate [as _immediateCallback] (timers.js:697:5)