-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Labels
[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Build ToolingIssues or PRs related to build toolingIssues or PRs related to build tooling
Description
Description
When running a dev build with npm run dev in a fresh Gutenberg repository checkout (or after running rm -R build/scripts/block-library), an error is thrown:
Building blocks manifests...
ERROR Input directory "/Users/adamsilverstein/repositories/gutenberg-new2/build/scripts/block-library" does not exist.
❌ Dev build failed: Command failed: wp-scripts build-blocks-manifest --input=build/scripts/block-library --output=build/scripts/block-library/blocks-manifest.php
Additional details
Running npm run build works fine, and subsequent calls to npm run dev also work, the build command apparently created the missing folder the dev build complains about being missing.
Likely there is a missing build step that checks for the folder and creates it if missing needs to be added to bin/dev.mjs; I recently fixed a similar issue I had introduced in #75104
Steps to reproduce
- Check out a fresh copy of the Gutenberg repository
- Run
nvm use && npm install && npm run dev
Expected result
Build completes successfully
Actual result
Error notes above
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] Build ToolingIssues or PRs related to build toolingIssues or PRs related to build tooling