jherr / wp5-starter-react

Webpack 5 Start Kit for React
wp5-starter-react.vercel.app
116 stars 51 forks source link

Webpack-cli error - bump to 4.9.0 #28

Open CharidimosTzedakis opened 2 years ago

CharidimosTzedakis commented 2 years ago

Description

When trying to start the development server for the app with yarn start, the following error occurs (see screenshot):

[webpack-cli] Unable to load '@webpack-cli/serve' command
[webpack-cli] TypeError: options.forEach is not a function

Steps to reproduce

Possible solution

This is probably related to this: https://github.com/webpack/webpack-cli/issues/2990

I bumped the webpack-cli from 4.6.0 to 4.9.0 and the error did not appear anymore.

Screenshot

webpack_cli_error