I edited the start/build scripts in package.json to this and it works.
"build": "wp-scripts build --webpack-src-dir=block/post-type-register/src --output-path=block/post-type-register/build",
"start": "wp-scripts start --webpack-src-dir=block/post-type-register/src --output-path=block/post-type-register/build"
Related Posts:
- Passing select control value to block
- Passing RichText attributes to function onChange
- How do I store information in a dynamic block in WordPress?
- How to create custom embed block in gutenberg wordpress
- How to use get_theme_mod in gutenberg editor wordpress?
- How to add Internationalization in WordPress using Javascript/React?
- how to disable blockrenderAppender inside all Innerblocks?
- WordPress Gutenberg react make import of __experimentalUseInnerBlocksProps which is no more experimetal
- Using SVN to upload plugin created with gutenberg blocks
- How to add custom table style for table block in gutenberg editor
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- Use a custom block in another block
- Gutenberg default attributes are empty when accessing in edit
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Has blocks gutenberg block multiples registers type in my Plugin
- Fixed: Console.log twice in the edit function
- How to resolve warning for `unstableOnSplit` prop on a DOM element in block editor
- How to dynamically add template in Innerblock?
- Block content rendering on the top just below body tag
- Gutenberg: Dynamic Block – Show saved data in the editor
- How do I set register_meta for a specific CPT?
- How do I save meta key value in the save function?
- Update Content for a Custom Block Toolbar Button
- Wrong block appender button showing
- How to get custom setting from get_option and pass it in getEntityRecords in gutenberg block?
- Vanilla javascript in custom gutenberg block not working
- WordPress custom block: Link saved in database not retrieved when editing post
- Why is my Gutenberg block not saving and rendering the chessboard?
- How can we extent core/group or cover block?
- How to change the version of block.js and plugin to the same of Package.json?
- How do I apply different block supports to different parts of my custom block?
- Custom Gutenberg blocks not showing in WP editor
- Update plugin from personal API
- Symlinked plugin directory doesn’t appear in Admin
- Where the Nickname is being used in WordPress
- How can I include a setting that has a variable number of values in a settings page using register_setting?
- Adding dynamic section to WordPress
- Gutenberg: Difference between “import” and “const” for dependencies
- Custom data-id wp_enqueue_script
- Yoast SEO blocking/re-initialising longer running process
- Add Fields with Sub-Fields to WP Job Manager
- template_redirect not being called when using ajax
- How use %like% in sql statement wordpress
- Can I use a form in a dashboard widget?
- Is there a way to alter the order in which the plugins appear in the page?
- How to correctly detect accessing wp-content/uploads?
- Getting RGBA colour from gutenberg colourpicker
- MITM risk of not sanitizing?
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- WordPress plugin – Error “Plugin generate 2890 characters of unexpected output when activated”
- Change plugin main file name (that is currently in the repo)
- Edit Yoast SEO breadcrumbs output [closed]
- Suggestions on Approach to New Plugin I’m Stuck On
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Settings API saved values not getting shown in the dropdownbox
- populating a form field with output from a custom plugin function
- Why Does The `auto_update_plugin` Hook Disable Management?
- Is there a way to add custom endpoint to specific page only
- IF condition based on wp_remote_get output
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Is there a script to collect all hooks and filters provided by a plugin?
- How WordPress core manage the plugin installation
- Post status doesn’t update to ‘future’ every time?
- count the number of views of a post excluding own views
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- WP REST API GET Method Works But Not The POST Method
- WordPress Gutenberg custom block
- How to set Google Analytics tracking code on WordPress plugin directory page?
- Show Custom Post on Frontend
- Problem with checked box on wp car manager plugin
- Better search on WordPress.org Plugins?
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Load my Inline js footer area
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Using multi-dimensional array with filter
- WordPress Admin sub-level menu issue
- How do I add a textarea (multirow) option to my WordPress plugin?
- PHP header() not available to use in my plugin
- Passing ajax variable to more than one wordpress plugin function
- Why isn’t my plugin seeing other classes?
- How to add jquery to my custom post type wp plugin
- Update post meta not working on wp_postmeta
- Check if user is in a group of another site within multisite network [closed]
- Redirect url in plugin to somewhere else?
- wp_insert_post_data filter to set category
- Site is setup statically – how to make it content managable?
- is there a way I can add or remove some plugin options?
- What can I do to customize a widget provided with this plugin? from where have I to start?
- How to escape html code?
- On the same site, how do I send data from a plugin file to a theme file?
- How to add custom html to the Media > Attachment Details modal?
- Displaying Category Feature image on loop
- Implementing onSplit/onMerge in dynamic Gutenberg Custom Blocks
- How to disable pagination in WordPress’ API results?
- Best approach to change mobile background image and adding its class
- Warning “Attempt to read property ‘feeds’ on null” using post update function