webpack打包报错:TypeError: compiler.getInfrastructureLogger is not a function

701 阅读1分钟

image.png

webpack-cli的版本太低,更新版本即可。

npm install webpack@5.42.1 webpack-cli@4.10.0 -D