Skip to content

The block is not visible in the editor after that the "wp-scripts start --hot" command is launched #77293

@daniDevKr

Description

@daniDevKr

Description

The custom block is not visible in the gutenberg editor blocks tray when the option "--hot" is added to the command "wp-scripts start".

Step-by-step reproduction instructions

  1. Create workspace "sample_workspace";
  2. create (in the workspace ) a new block project with "npx @wordpress/create-block@latest sample-block" command and performs first build;
  3. Create (in the workspace) the .wp-env.json file and add the plugin path to this config file;
  4. Start the test environment with "wp-env"
  5. launch "npx wp-scripts start --hot" command;
  6. Navigate with the browser to the Gutenberg editor and open the blocks tray.

Screenshots, screen recording, code snippet

The used .wp-env.json:

{
 
  "plugins": [
    "https://downloads.wordpress.org/plugin/gutenberg.latest-stable.zip",
    "./sample-block"
  ],
  "config": {
    "WP_DEBUG": true,
    "SCRIPT_DEBUG": true
  }
}
Image

Environment info

-Wordpress version: 6.9.4

  • Browser: Google chrome146.0.7680.178 (Build ufficiale) (a 64 bit) (cohort: Stable)
  • Operating system: Microsoft Windows 11 Home 25H2
  • wp-env version: 11.3.0
  • nodejs version: 22.22.2

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

No one assigned

    Labels

    Needs TestingNeeds further testing to be confirmed.[Status] In ProgressTracking issues with work in progress[Status] StaleGives the original author opportunity to update before closing. Can be reopened as needed.[Tool] WP Scripts/packages/scripts[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions