WordPress / WordPress/block-development-examples

npm error Missing script: "create-example:new"

Open Beginner friendly
#159 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
334
Forks
52
PR merge metrics
No merged PRs in 30d

Description

can't run create-block scaffolding scripts

When attempting to add a new example, the following error occurs:

Run npm run create-example:new -- example-slug
changing example-slug to the name of the plugin you wish to create.

npm run create-example:new -- my-great-example --variant dynamic

npm error Missing script: "create-example:new"
npm error
npm error Did you mean one of these?
npm error npm run create-example # run the "create-example" package script
npm error npm run postcreate-example:new # run the "postcreate-example:new" package script
npm error
npm error To see a list of scripts, run:
npm error npm run

Per Adding new examples

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the npm scripts used by the create-block scaffolding flow and compare the documented create-example:new command with the available scripts. Reproduce the command from the Adding new examples guide, then verify that creating an example works with both a slug and the --variant dynamic option.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.