Title: Developing Block
Last modified: September 2, 2025

---

# Developing Block

 *  [arakchievilya](https://wordpress.org/support/users/arakchievilya/)
 * (@arakchievilya)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/developing-block/)
 * Hello,
 * I build the block like in course “Beginner WP Developer”. I scaffolded a new 
   block with npx command: [@wordpress](https://wordpress.org/support/users/wordpress/)/
   create-block@latest copyright-date-block. But when I type a command for build
   block: npm run build I have:
 * ilya@ilya-MS-7B38:/opt/lampp/htdocs/wordpress/wp-content/plugins/copyright-date-
   block$ npm run build
 * > copyright-date-block@0.1.0 build
   > wp-scripts build
 * [webpack-cli] SyntaxError: Expected double-quoted property name in JSON at position
   463
   at JSON.parse ()at /opt/lampp/htdocs/wordpress/wp-content/plugins/copyright-
   date-block/node_modules/@wordpress/scripts/utils/config.js:373:26at Array.flatMap()
   at getPhpFilePaths (/opt/lampp/htdocs/wordpress/wp-content/plugins/copyright-
   date-block/node_modules/@wordpress/scripts/utils/config.js:372:28)at /opt/lampp/
   htdocs/wordpress/wp-content/plugins/copyright-date-block/node_modules/@wordpress/
   scripts/utils/php-file-paths-plugin.js:52:29at Hook.eval [as call] (eval at create(/
   opt/lampp/htdocs/wordpress/wp-content/plugins/copyright-date-block/node_modules/
   tapable/lib/HookCodeFactory.js:19:10), :7:1)at Hook.CALL_DELEGATE [as _call](https://wordpress.org/support/topic/developing-block/14?output_format=md)
   at Compiler.newCompilation (/opt/lampp/htdocs/wordpress/wp-content/plugins/copyright-
   date-block/node_modules/webpack/lib/Compiler.js:1273:30)at /opt/lampp/htdocs/
   wordpress/wp-content/plugins/copyright-date-block/node_modules/webpack/lib/Compiler.
   js:1318:29at Hook.eval [as callAsync] (eval at create (/opt/lampp/htdocs/wordpress/
   wp-content/plugins/copyright-date-block/node_modules/tapable/lib/HookCodeFactory.
   js:33:10), :6:1)
 * Why is error? Thank you

Viewing 1 replies (of 1 total)

 *  [Aditya Dhade](https://wordpress.org/support/users/b1ink0/)
 * (@b1ink0)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/developing-block/#post-18084174)
 * Hello [@arakchievilya](https://wordpress.org/support/users/arakchievilya/),
 * From the errors you provided probably your `block.json` or `package.json` files
   contains invalid syntax for the property name.
   Like in `.json` files you need
   to make sure that your property name should be double-quoted for example.
 *     ```wp-block-code
       {    name: "My block name" # This is not valid json    "name": "My block name" # This is valid json}
       ```
   
 * I would recommend you to check the `block.json` or `package.json` files for the
   above mistakes.
 * Hope this helps!

Viewing 1 replies (of 1 total)

The topic ‘Developing Block’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Aditya Dhade](https://wordpress.org/support/users/b1ink0/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/developing-block/#post-18084174)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
