TypeError: Cannot read property 'javascript' of undefined + terser webpack plugin + react js
Others 2022-01-19 11:08:50 2022-01-19 11:08:50 1270 次浏览
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文件
Links: 547