Skip to content

scripts: Unknown command or entry 'index=./src/frontend/index.js' #34236

@cpiber

Description

@cpiber

Description

Related to webpack v5 migration: #33818.

Using the latest @wordpress/scripts (18.0.0), building with a custom entry point is not possible (npx wp-scripts build ./src/frontent/index.js).

[webpack-cli] Unknown command or entry 'index=./src/frontend/index.js'
[webpack-cli] Run 'webpack --help' to see available commands and options

Works normally without the optional path.

Works as expected in 17.1.0.

Step-by-step reproduction instructions

  1. Install @wordpress/scripts@latest
  2. Run npx wp-scripts build <some path>

Screenshots, screen recording, code snippet

No response

Environment info

  • Ubuntu 18.04
  • Node v14.17.5

Pre-checks

  • I have searched the existing issues.
  • I have tested with all plugins deactivated except Gutenberg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Tool] WP Scripts/packages/scripts[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions