gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Block Editor crashes with Minified React error #185 when changing Button font size

Open elphizu opened this issue 10 months ago • 3 comments

Description

Changing the font size of the core Button block in the WordPress Block Editor causes the editor to crash and throws a Minified React error #185 in the browser console. The issue occurs during editor interaction, not on the frontend.

Error Thrown:

Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at al (http://new.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:10:82327)
    at Pt (http://new.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:10:48526)
    at http://new.local/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1.1:10:48385
    at s (http://new.local/wp-includes/js/dist/data.min.js?ver=f940198280891b0b6318:9:2363)
    at c (http://new.local/wp-includes/js/dist/data.min.js?ver=f940198280891b0b6318:9:2389)
    at http://new.local/wp-includes/js/dist/data.min.js?ver=f940198280891b0b6318:2:18939
    at http://new.local/wp-includes/js/dist/data.min.js?ver=f940198280891b0b6318:2:17214
    at http://new.local/wp-includes/js/dist/data.min.js?ver=f940198280891b0b6318:2:6992
    at Map.forEach (<anonymous>)
    at S (http://new.local/wp-includes/js/dist/data.min.js?ver=f940198280891b0b6318:2:6979)
Image

Step-by-step reproduction instructions

  1. Install WordPress (latest stable).
  2. Open the editor( Appearance -> editor ).
  3. Styles -> typography -> buttons
  4. Change the font size (preset or custom).

Screenshots, screen recording, code snippet

https://github.com/user-attachments/assets/b7d12178-a23c-4bd0-bfd8-fc0f68f0f98d

Environment info

Environment: LocalWP (local development) WordPress: 6.9 Gutenberg: Not installed (using block editor bundled with WordPress core) Theme: Twenty Twenty-Five Plugins: None Browser: Brave 1.86.139 OS: macOS

Please confirm that you have searched existing issues in the repo.

  • [x] Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • [x] Yes

Please confirm which theme type you used for testing.

  • [x] Block
  • [ ] Classic
  • [ ] Hybrid (e.g. classic with theme.json)
  • [x] Not sure

elphizu avatar Jan 19 '26 15:01 elphizu

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 6.9
  • PHP: 8.3.29
  • Server: PHP.wasm
  • Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
  • Browser: Firefox 147.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.1

Actual Results

  1. ✅ Error condition occurs (reproduced).

Steps to Reproduce

  • Install WordPress 6.9.
  • Open site editor ( Appearance > Editor )
  • Go to Styles > Typography > Buttons
  • Change the font size (preset or custom).

Supplemental Artifacts

https://github.com/user-attachments/assets/a3fbb528-03f7-4822-9cdf-1de70f91d124

shazzad avatar Jan 19 '26 18:01 shazzad

Thank you for the reports, I am not able to replicate this issue on trunk. It's likely already been fixed but might require a backport to 6.9

https://github.com/user-attachments/assets/e9bc95b6-1b35-4433-8b29-7b2dde192c5e

Mayank-Tripathi32 avatar Jan 19 '26 21:01 Mayank-Tripathi32

Thanks for the report. This issue has been fixed in #73955.

t-hamano avatar Jan 20 '26 02:01 t-hamano