Skip to content

Commit

Permalink
fix: error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Mar 9, 2021
1 parent c751e8f commit 5275ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-cli/lib/webpack-cli.js
Expand Up @@ -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");
Expand Down

0 comments on commit 5275ad5

Please sign in to comment.