HookWebpackError: Cannot read property 'forEach' of undefined
at makeWebpackError (node_modules/webpack/lib/HookWebpackError.js:49:9)
at node_modules/webpack/lib/Compilation.js:1844:8
at Hook.eval [as callAsync] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:12:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
at node_modules/webpack/lib/Compilation.js:1838:36
at Hook.eval [as callAsync] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
at Compilation.seal (node_modules/webpack/lib/Compilation.js:1829:27)
at node_modules/webpack/lib/Compiler.js:930:20
at node_modules/webpack/lib/Compilation.js:1706:4
at _next2 (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at eval (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:52:1)
at node_modules/webpack/lib/FlagDependencyExportsPlugin.js:289:11
at node_modules/neo-async/async.js:2830:7
at Object.each (node_modules/neo-async/async.js:2850:39)
at node_modules/webpack/lib/FlagDependencyExportsPlugin.js:268:18
-- inner error --
TypeError: Cannot read property 'forEach' of undefined
at node_modules/webpack-common-shake/lib/shake/plugin.js:79:24
at Set.forEach (<anonymous>)
at node_modules/webpack-common-shake/lib/shake/plugin.js:78:15
at Hook.eval [as callAsync] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:16)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
at node_modules/webpack/lib/Compilation.js:1838:36
at Hook.eval [as callAsync] (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (node_modules/webpack/node_modules/tapable/lib/Hook.js:18:14)
at Compilation.seal (node_modules/webpack/lib/Compilation.js:1829:27)
at node_modules/webpack/lib/Compiler.js:930:20
at node_modules/webpack/lib/Compilation.js:1706:4
at _next2 (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:25:1)
at eval (eval at create (node_modules/webpack/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:52:1)
at node_modules/webpack/lib/FlagDependencyExportsPlugin.js:289:11
at node_modules/neo-async/async.js:2830:7
at Object.each (node_modules/neo-async/async.js:2850:39)
error while using this plugin with webpack 5
webpack@5.0.0-beta.20
webpack-common-shake@2.1.0