Skip to content

Dev build error on new checkout or after rm -R build #75107

@adamsilverstein

Description

@adamsilverstein

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

  1. Check out a fresh copy of the Gutenberg repository
  2. 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

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions