My site’s deployment is failing with the following error:
9:35:30 PM: One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
9:35:30 PM: - webpack-cli (https://github.com/webpack/webpack-cli)
9:35:30 PM: The original webpack full-featured CLI.
9:35:30 PM: We will use “npm” to install the CLI via “npm install -D”.
9:35:30 PM: Do you want to install ‘webpack-cli’ (yes/no):
npx webpack as part of the build command and it’s causing the above error.
The exact same setup works fine on the staging branch, which has the same code and configurations, but fails on the master branch. I didn’t do anything special for the staging branch.
My package.json has both
webpack-cli as dev dependencies.
What do I need to do to resolve this issue?