WordPress / gutenberg-examples

Examples for extending WordPress/Gutenberg with blocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running npm run build in 10-dynamic-block breaks the block

salcode opened this issue · comments

If I navigate into the 10-dynamic-block directory and run npm run build, the block stops working.

image

I can see the build/block.json and build/template.php files are deleted (when I suspect they should be modified).

    deleted:    build/block.json
    modified:   build/index.asset.php
    modified:   build/index.js
    deleted:    build/template.php

image

This was user error.

The problem occurred because I failed to run npm install inside the 10-dynamic-block directory before npm run build.