Skip to content

within monorepo keep getting [webpack-cli] The command moved into a separate package: @webpack-cli/serve  #2081

@xzilja

Description

@xzilja

I'm not sure if this is a bug or something else, but on every version after 5.2 I keep getting following error when trying to run serve command:

[webpack-cli] The command moved into a separate package: @webpack-cli/serve

The command that triggers this is

webpack serve --config webpack/development.js

CLI asks me if I want to install @webpack-cli/serve, I agree to that prompt and install that, but then still get the error. My hunch is that it can be related to monorepos?

My repo structure looks like this

packages
 app/
   package.json
package.json

I run my commands from root package.json, but all webpack packages are scoped to app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions