common-shake:module use this="../ZodError" property="ZodIssueCode" from="/home/user/project/node_modules/zod/lib/locales/en.js" recursive=false +0ms
common-shake:module use this="../ZodError" property="ZodIssueCode" from="/home/user/project/node_modules/zod/lib/locales/en.js" recursive=false +1ms
common-shake:module use this="../helpers/util" property="util" from="/home/user/project/node_modules/zod/lib/locales/en.js" recursive=false +0ms
[webpack-cli] HookWebpackError: Cannot read properties of undefined (reading 'forEach')
at makeWebpackError (/home/user/project/node_modules/webpack/lib/HookWebpackError.js:48:9)
at /home/user/project/node_modules/webpack/lib/Compilation.js:2974:8
at Hook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:12:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/user/project/node_modules/tapable/lib/Hook.js:18:14)
at /home/user/project/node_modules/webpack/lib/Compilation.js:2968:36
at eval (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /home/user/project/node_modules/html-webpack-plugin/lib/cached-child-compiler.js:237:53
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
-- inner error --
TypeError: Cannot read properties of undefined (reading 'forEach')
at /home/user/project/node_modules/webpack-common-shake/lib/shake/plugin.js:79:24
at Set.forEach (<anonymous>)
at /home/user/project/node_modules/webpack-common-shake/lib/shake/plugin.js:78:15
at Hook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:16)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/user/project/node_modules/tapable/lib/Hook.js:18:14)
at /home/user/project/node_modules/webpack/lib/Compilation.js:2968:36
at eval (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /home/user/project/node_modules/html-webpack-plugin/lib/cached-child-compiler.js:237:53
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
caused by plugins in Compilation.hooks.optimizeChunkModules
TypeError: Cannot read properties of undefined (reading 'forEach')
at /home/user/project/node_modules/webpack-common-shake/lib/shake/plugin.js:79:24
at Set.forEach (<anonymous>)
at /home/user/project/node_modules/webpack-common-shake/lib/shake/plugin.js:78:15
at Hook.eval [as callAsync] (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:16)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/user/project/node_modules/tapable/lib/Hook.js:18:14)
at /home/user/project/node_modules/webpack/lib/Compilation.js:2968:36
at eval (eval at create (/home/user/project/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:11:1)
at /home/user/project/node_modules/html-webpack-plugin/lib/cached-child-compiler.js:237:53
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Hi, I get the following error when running with these versions:
Package versions
Error
webpack.config.js