TypeError: Cannot read properties of undefined (reading ‘javascript‘)
TypeError: Cannot read properties of undefined (reading ‘javascript‘)
·
TypeError: Cannot read properties of undefined (reading ‘javascript’)
D:\candela_computing_tool\node_modules\terser-webpack-plugin\dist\index.js:763
const hooks = compiler.webpack.javascript.JavascriptModulesPlugin.getCompilationHooks(compilation);
解决问题:由于terser-webpack-plugin@5与webpack @ 4不兼容,所以运⾏npm uninstall terser-webpack-plugin,重新安装新的版本npm install terser-webpack-plugin@4.2.3
更多推荐
所有评论(0)