$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>customization - Running Gutenberg React in Development Mode|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

customization - Running Gutenberg React in Development Mode

matteradmin8PV0评论

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);
Post a comment

comment list (0)

  1. No comments so far