From 5275ad5b66a45aefece6e60c1f184b7022e2f474 Mon Sep 17 00:00:00 2001 From: Rishabh Chawla Date: Tue, 9 Mar 2021 14:18:31 +0530 Subject: [PATCH] fix: error message --- packages/webpack-cli/lib/webpack-cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-cli/lib/webpack-cli.js b/packages/webpack-cli/lib/webpack-cli.js index 0d68efbf47e..ea1022ea325 100644 --- a/packages/webpack-cli/lib/webpack-cli.js +++ b/packages/webpack-cli/lib/webpack-cli.js @@ -944,7 +944,7 @@ class WebpackCLI { (command) => command.name.includes(name) || name === command.alias, ); if (typeof builtInCommandUsed !== 'undefined') { - this.logger.error(`For using '${name}' command you need to install '${builtInCommandUsed[0].pkg}' package`); + this.logger.error(`For using '${name}' command you need to install '${builtInCommandUsed.pkg}' package`); } else { this.logger.error(`Can't find and load command '${name}'`); this.logger.error("Run 'webpack --help' to see available commands and options");