admin管理员组文章数量:1130349
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.
1 Answer
Reset to default 28It 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);
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.
1 Answer
Reset to default 28It 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);
本文标签: customizationRunning Gutenberg React in Development Mode
版权声明:本文标题:customization - Running Gutenberg React in Development Mode 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749102258a2316174.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论