TypeError: Cannot read property 'javascript' of undefined + terser webpack code example
Example: terser plugin Cannot read property 'javascript' of undefined
downgrade to this version npm i terser-webpack-plugin@4.2.3 -D
downgrade to this version npm i terser-webpack-plugin@4.2.3 -D