TypeError: Cannot read property 'javascript' of undefined + terser webpack plugin + react js
emer 发布于 2022-1-19 19:08 1254 次阅读
Hi you are using Webpack 4 and Terser ^5.0.0
. This version of Terser is for Webpack 5, you need to set version "terser-webpack-plugin": "^4.2.3",
in package.json
file
您正在使用Webpack 4和精简版^5.0.0。此版本的Terser适用于网页包5,您需要在软件包中设置版本“terser webpack plugin”:“^4.2.3”json文件