npx @wordpress/create-block copyright-date-block --template @wordpress/create-block-tutorial-template
After successfully activating the plugin in the WordPress admin panel, I expected to see my custom block ("copyright-date-block") in the Gutenberg editor. However, upon searching for it in the Gutenberg blocks, I couldn't find it anywhere.
Can anyone guide me on how I can see my "copyright-date-block" in my WordPress Gutenberg editor? Are there any specific steps or settings I need to follow?
Steps Taken and Expected Outcome:
Plugin Creation: I used the npx @wordpress/create-block command to generate the plugin named "copyright-date-block" based on the tutorial template.
Plugin Activation: After successfully creating the plugin, I activated it in the WordPress admin panel under the "Plugins" section. I expected the activated plugin to be fully functional and visible in the Gutenberg editor.
Took me a while but got it working downgrade the versions of the WordPress scripts:
package.json
@wordpress/scripts": "28.0.0" --> 27.9.0
then delete node_modules folder, run npm install, then run npm build.
Src: https://community.localwp.com/t/block-plugin-development-using-create-block-package-issue/43192