WordPress / WordPress/block-development-examples
npm error Missing script: "create-example:new"
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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