Javascript 网页包:未处理PromisejectionWarning:TypeError:集合不可编辑
安装所有依赖项以便运行webpack服务器,启动命令Javascript 网页包:未处理PromisejectionWarning:TypeError:集合不可编辑,javascript,webpack,webpack-cli,Javascript,Webpack,Webpack Cli,安装所有依赖项以便运行webpack服务器,启动命令node\u modules/.bin/webpack时出现以下错误: (node:9899) [DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS] DeprecationWarning: optimizeChunkAssets is deprecated (use Compilation.hook.processAssets instead and use one of Compilation.PRO
node\u modules/.bin/webpack
时出现以下错误:
(node:9899) [DEP_WEBPACK_COMPILATION_OPTIMIZE_CHUNK_ASSETS] DeprecationWarning: optimizeChunkAssets is deprecated (use Compilation.hook.processAssets instead and use one of Compilation.PROCESS_ASSETS_STAGE_* as stage option)
(node:9899) UnhandledPromiseRejectionWarning: TypeError: set is not iterable
at merge (/home/xx/nodevenv/xxx/12/lib/node_modules/webpack/lib/util/LazySet.js:18:22)
at LazySet._merge (/home/xx/nodevenv/xx/12/lib/node_modules/webpack/lib/util/LazySet.js:74:3)
at LazySet.[Symbol.iterator] (/home/xx/nodevenv/xx/12/lib/node_modules/webpack/lib/util/LazySet.js:172:29)
at captureNonManaged (/home/xx/nodevenv/xx/12/lib/node_modules/webpack/lib/FileSystemInfo.js:1583:23)
网页包cli版本:4.2.0
网页包版本:5.4.0
我已尝试删除节点模块并重新安装,但错误仍然存在
有什么想法吗?谢谢