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.
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
This was user error.
The problem occurred because I failed to run npm install
inside the 10-dynamic-block
directory before npm run build
.