-
Notifications
You must be signed in to change notification settings - Fork 21
Closed
Labels
Description
Describe the bug
- When running
10up-toolkit build - If I have no files that match the glob
/path/to/my/site/wp-content/themes/my-theme/includes/blocks/**/markup.php - I get the following error:
ERROR in unable to locate '/path/to/my/site/wp-content/themes/my-theme/includes/blocks/**/markup.php' glob
webpack 5.75.0 compiled with 1 error in 3018 ms
npm ERR! Lifecycle script `build` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: @my-theme/theme@1.0.0
- And pipelines, builds, etc. can't proceed
Temporary workaround: create a markup.php file in any includes/blocks subdirectory in the theme, even if it's unused.
Steps to Reproduce
- Create a site using 10up scaffold and using 10up-toolkit to build
- Remove any markup.php files in the includes/blocks subdirectories.
- Run
npm run buildin the theme. - See the rerror
Screenshots, screen recording, code snippet
Possibly related to:
| useBlockAssets && { |
Environment information
No response
WordPress information
Latest 10up scaffold using latest 10up-toolkit
Code of Conduct
- I agree to follow this project's Code of Conduct