admin管理员组文章数量:1122832
I have created a Gutenberg block using the following command:
npx @wordpress/create-block test-block --template @wordpress/create-block-tutorial-template
Reference: /
Then ran npm start
from within wp-content/plugins/test-block
directory. Everything ran successfully. The plugin is active. But cannot find it inside the inserter.
Plugin meta:
**
* Plugin Name: Test Block
* Text Domain: test-block
* ...
* @package create-block
*/
This is my first Gutenberg block!
I have created a Gutenberg block using the following command:
npx @wordpress/create-block test-block --template @wordpress/create-block-tutorial-template
Reference: https://developer.wordpress.org/block-editor/getting-started/quick-start-guide/
Then ran npm start
from within wp-content/plugins/test-block
directory. Everything ran successfully. The plugin is active. But cannot find it inside the inserter.
Plugin meta:
**
* Plugin Name: Test Block
* Text Domain: test-block
* ...
* @package create-block
*/
This is my first Gutenberg block!
Share Improve this question asked Jun 12, 2024 at 12:36 Subrata SarkarSubrata Sarkar 2394 silver badges16 bronze badges1 Answer
Reset to default 1Gutenberg recently upgraded JSX Runtime which is only compatible WP >= 6.6. See link https://make.wordpress.org/core/2024/06/06/jsx-in-wordpress-6-6/
If you update WordPress to 6.6-beta2 then it should work.
In the meantime they are figuring out about back compatibility. See comment - https://make.wordpress.org/core/2024/06/06/jsx-in-wordpress-6-6/#comment-46779
Or if you are not ready to upgrade to WP 6.6 yet, you can downgrade @wordpress/scripts
to 27
version. This back compat havoc came in version 28
.
本文标签: Building my first ever Gutenberg block
版权声明:本文标题:Building my first ever Gutenberg block 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736303892a1932041.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论