Make WordPress Core

Opened 7 months ago

Closed 7 months ago

#61404 closed defect (bug) (reported-upstream)

Block fails to register with wp-scripts v28.0.0

Reported by: itumulak's profile itumulak Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.6
Component: General Keywords:
Focuses: Cc:

Description

When working with Gutenburg blocks and used npx @wordpress/create-block@latest to scaffold my block. My block somehow won't register.

To solve this, I have to downgrade wp-script to v27.9.0. npx @wordpress/create-block@latest ships out v28.0.0.

StackOverflow
Local Forum

Change History (2)

#1 @itumulak
7 months ago

  • Severity changed from blocker to critical

#2 @swissspidy
7 months ago

  • Focuses javascript sustainability removed
  • Keywords needs-patch 2nd-opinion dev-feedback needs-testing removed
  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Severity changed from critical to normal
  • Status changed from new to closed

This is a known issue with this version, as it essentially only works on WordPress 6.6 and newer.

While not ideal, the recommended workaround is to downgrade to version 27.9.0 and stay on that version for a while.

See https://make.wordpress.org/core/2024/06/06/jsx-in-wordpress-6-6/ for more information

Note: See TracTickets for help on using tickets.