Skip to content

Webpack-cli error - bump to 4.9.0 #28

@CharidimosTzedakis

Description

@CharidimosTzedakis

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

  • install the dependencies for the first time with yarn
  • now if yarn start the dev server starts normally
  • delete node_modules and yarn.lock
  • install again the dependencies with 'yarn'
  • if now we try to start the server, we get the error

Possible solution

This is probably related to this:
webpack/webpack-cli#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions