Open bobbingwide opened 3 years ago
The Toolicons block and variations is registered using v1 of the registerBlockType API. It needs to be:
apiVersion: 2
block.json
package.json
index.js
node_modules
The scope is the source code of the plugin.
Process for updating node_modules
npm install
npm install @wordpress/scripts --save-dev
See https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/
The Toolicons block and variations is registered using v1 of the registerBlockType API. It needs to be:
apiVersion: 2
Requirements
block.json
Proposed solution
package.json
block.json
for each blockindex.js
to register the block from the server registrationblock.json
node_modules
and rebuildThe scope is the source code of the plugin.
Process for updating node_modules
node_modules
foldernpm install
npm install @wordpress/scripts --save-dev
See https://developer.wordpress.org/block-editor/reference-guides/packages/packages-scripts/