Opened 23 months ago
Closed 23 months ago
#61404 closed defect (bug) (reported-upstream)
Block fails to register with wp-scripts v28.0.0
| Reported by: |
|
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.
Change History (2)
Note: See
TracTickets for help on using
tickets.
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