-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
[Tool] Create Block/packages/create-block/packages/create-block[Tool] WP Scripts/packages/scripts/packages/scripts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
In #69578, a new --blocks-manifest
argument was added to create the blocks manifest file. This argument is primarily needed to ensure the block manifest file is not removed while developing blocks in watch mode.
However, it has been reported here that this parameter may not work in some environments.
Note: The root cause was found. See #69760 (comment)
Step-by-step reproduction instructions
Please follow the steps below:
- Create a plugin that includes a custom block template:
npx @wordpress/create-block@latest test-block
- Open the directory
- Is your
@wordpress/scripts
version30.14.0
? Check thedevDependencies
field in thepackage.json
file. - Check the
start
andbuild
command in thepackage.json
file. They should be"start": "wp-scripts start --blocks-manifest"
and"build: wp-scripts build --blocks-manifest"
. - Run
npm run start
ornpm run build
- Confirm that the
test-block/build/blocks-manifest.php
file is created
If you encountered any problems, please leave your environment information:
- OS (e.g.Windows or MacOS)
- node version, npm version
- Did you see any error logs/messages?
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Metadata
Metadata
Assignees
Labels
[Tool] Create Block/packages/create-block/packages/create-block[Tool] WP Scripts/packages/scripts/packages/scripts[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended