• Resolved IncredibleWP

    (@incrediblewp)


    Hi,

    I am trying to use the popular “npx @wordpress/create-block” tool to create a simple test block on a new local WordPress environment (6.5.3) while following this simple guide: https://developer.www.ads-software.com/block-editor/getting-started/devenv/get-started-with-create-block/

    After the script is done:

    1. Running “npm run build” inside the new plugin directory. Confirm all files are in the build folder.
    2. Enabling the new plugin (called “todo-list”)
    3. Open the Block Editor while creating a new page. The new block is not available while searching the name or trying to find it in the list. No errors in the console inside the Editor or WP error logs.

    I also tried the interactive mode while generating static or dynamic type of blocks with different slugs and namespaces. The same issue, the Editor is not adding the blocks (no errors in the console or error logs).

    Any suggestion? why the Editor is not showing the new added blocks?

    Thanks

    Idan

    Here is the generated block.json content:

    {
    
    ? ? "$schema": "https://schemas.wp.org/trunk/block.json",
    
    ? ? "apiVersion": 3,
    
    ? ? "name": "create-block/todo-list",
    
    ? ? "version": "0.1.0",
    
    ? ? "title": "Todo List",
    
    ? ? "category": "widgets",
    
    ? ? "icon": "smiley",
    
    ? ? "description": "Example block scaffolded with Create Block tool.",
    
    ? ? "example": {},
    
    ? ? "supports": {
    
    ? ? ? ? "html": false
    
    ? ? },
    
    ? ? "textdomain": "todo-list",
    
    ? ? "editorScript": "file:./index.js",
    
    ? ? "editorStyle": "file:./index.css",
    
    ? ? "style": "file:./style-index.css",
    
    ? ? "viewScript": "file:./view.js"
    
    }

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.