compression-webpack-plugin '踩坑' Cannot read property ‘tapPromise‘ of undefined

vue 使用webpack插件打包时候报错

compression-webpack-plugin 目前最新版是 7.1.0

解决方法:版本问题,卸载降低版本

npm uninstall compression-webpack-plugin
npm i [email protected]

你可能感兴趣的:(compression-webpack-plugin '踩坑' Cannot read property ‘tapPromise‘ of undefined)