[webpack-cli] TypeError: compiler.plugin is not a function
at renameOutputPlugin.apply (/app/node_modules/rename-output-webpack-plugin/dist/index.js:87:22)
at createCompiler (/app/node_modules/webpack/lib/webpack.js:69:12)
at create (/app/node_modules/webpack/lib/webpack.js:113:15)
at webpack (/app/node_modules/webpack/lib/webpack.js:121:46)
at f (/app/node_modules/webpack/lib/index.js:35:15)
at WebpackCLI.createCompiler (/app/node_modules/webpack-cli/lib/webpack-cli.js:176:24)
at WebpackCLI.run (/app/node_modules/webpack-cli/lib/webpack-cli.js:268:25)
at async runCLI (/app/node_modules/webpack-cli/lib/bootstrap.js:59:9)