Block Editor crashes with Minified React error #185 when changing Button font size
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)
Step-by-step reproduction instructions
- Install WordPress (latest stable).
- Open the editor( Appearance -> editor ).
- Styles -> typography -> buttons
- 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
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
- ✅ 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
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
Thanks for the report. This issue has been fixed in #73955.