customization - Running Gutenberg React in Development Mode

admin2025-06-05  3

Is there a way to enable WordPress to run the non-minified version of React while developing Gutenberg blocks?

I am receiving an error from React while learning to create Gutenberg blocks.

react-dom.min.b75d8b30.js:62 Error: Minified React error #130; visit .html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

It would be very helpful to get the full error. I am using the Gutenberg suggested abstraction, wp.element.createElement in order to create the elements. So my plugin has no direct access to React.

Is there a way to enable WordPress to run the non-minified version of React while developing Gutenberg blocks?

I am receiving an error from React while learning to create Gutenberg blocks.

react-dom.min.b75d8b30.js:62 Error: Minified React error #130; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

It would be very helpful to get the full error. I am using the Gutenberg suggested abstraction, wp.element.createElement in order to create the elements. So my plugin has no direct access to React.

Share Improve this question asked May 10, 2018 at 15:02 lookyhookylookyhooky 4234 silver badges13 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 28

It took me way too long to find this but all you have to do is set SCRIPT_DEBUG to true. Simply add this line to wp-config.php:

define('SCRIPT_DEBUG', true);
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749102282a316379.html

最新回复(0)