Title: npx @wordpress/create-block
Last modified: June 3, 2024

---

# npx @wordpress/create-block

 *  Resolved [IncredibleWP](https://wordpress.org/support/users/incrediblewp/)
 * (@incrediblewp)
 * [2 years ago](https://wordpress.org/support/topic/npx-wordpress-create-block/)
 * Hi,
 * I am trying to use the popular “npx [@wordpress](https://wordpress.org/support/users/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.wordpress.org/block-editor/getting-started/devenv/get-started-with-create-block/](https://developer.wordpress.org/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:
 *     ```wp-block-code
       {
   
           "$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)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years ago](https://wordpress.org/support/topic/npx-wordpress-create-block/#post-17799608)
 * I have just tried this myself and unfortunately I can understand it. A search
   of the Gutenberg team revealed that this is a known problem: [https://github.com/WordPress/gutenberg/issues/62202](https://github.com/WordPress/gutenberg/issues/62202)–
   take a look at the issue and follow it for a solution.
 *  Thread Starter [IncredibleWP](https://wordpress.org/support/users/incrediblewp/)
 * (@incrediblewp)
 * [2 years ago](https://wordpress.org/support/topic/npx-wordpress-create-block/#post-17799729)
 * Following that suggested link, I switched back to “@wordpress/scripts”: “^27.9.0”
   and now it is working.
 * Thanks for your help!
 * Idan
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years ago](https://wordpress.org/support/topic/npx-wordpress-create-block/#post-17799736)
 * It will be nice if it works now. You are also welcome to set the topic to solved.
 *  [scottmotion](https://wordpress.org/support/users/scottmotion/)
 * (@scottmotion)
 * [2 years ago](https://wordpress.org/support/topic/npx-wordpress-create-block/#post-17804621)
 * The tutorial should list which version of WP and packages are being used. It 
   says to use latest, but package.json is never shown so there’s no way to conform
   to the tutorial.
    -  This reply was modified 2 years ago by [scottmotion](https://wordpress.org/support/users/scottmotion/).
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years ago](https://wordpress.org/support/topic/npx-wordpress-create-block/#post-17804789)
 * You are welcome to leave comments on the documentation here: [https://github.com/WordPress/Documentation-Issue-Tracker/issues](https://github.com/WordPress/Documentation-Issue-Tracker/issues)–
   so that those who take care of them can view and evaluate it.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘npx @wordpress/create-block’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 5 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/npx-wordpress-create-block/#post-17804789)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
