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
- Redesigning Custom Post Type “Add New” page
- Is there any record of installed plugins in the database?
- WooCommerce – Call to undefined function is_woocommerce()
- Custom headers for the WordPress plugin directory
- How can I add a custom header to a custom template in a plugin without using the theme folders
- Trying to avoid including wp-load.php
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom values are not translated
- Change the name of an installed plugin
- Issue with post request to admin-post.php
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- How to make first_name and last_name required fields in user profile?
- like to keep reading plugin
- Check if email address exists front end with AJAX in a plugin
- Avoiding Duplicate function names in Post Loop (WP_Footer script)
- How to add class in plugin only for network site?
- Plugin Development sqlite or WordPress’ database
- WordPress plugin for activating other plugins
- Can we use a webservice with WordPress?
- New User Form – Custom Menu Page
- Checking instances of scripts in wp_head
- Fetch Children of Grouped Products Inside WooCommerce Product Loop
- How can I prevent my plugin go development trunk [closed]
- WordPress plugin creation how to execute .sql in order to insert multiple rows at activation of plugin
- Best way to maintain and update 3rd-party WP plugin when developer is unresponsive?
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- how to do login using woocommerce rest api From android
- How to create a code editor for my plugin .?
- How to create a custom shortcode based on the layout?
- Manually set a custom admin sub-menu selected?
- How to test ‘upgrader_process_complete’ hook in plugin development?
- Plugins ignored a line breaks or tag in the WordPress comment functions
- How to get path or root of plugin folder, not file or dir?
- How to make custom plugin run on demand?
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- Using WordPress to build membership Page
- Correct Plugin File Path
- strange shortcode error: does shortcodes requires any dependency?
- Create “new pages” within the admin section of plugin
- Quick press publish post hook
- Creating a plugin that will display text on every page
- I cannot include a file in my plugin settings page
- How to Call Specific .PHP file on add_submenu_page selection in Plugin Development?
- WordPress cron job running more than once
- How to Add text value in Automatically in this conditions?
- force logged in user to stay in the dashboard
- How to access a wordpress plugin page or add posts without doing it from the WordPress dashboard?
- Critical Error message of WordPress adming
- Clicking custom plugin admin menu redirects to “No Update Required” on live site
- Update wordpress user roles not working as excepted
- Create new page in wordpress plugin which doesn’t exist
- Use WordPress Plugin without WP head
- The plugin generated 227 characters of unexpected output during activation. If you notice “headers already sent” messages
- 500 Internal server error wp_handle_upload_prefilter
- Can’t access 3rd party API, code works on local server but not on wordpress
- Installation failed, trying to install ANY plugin
- Fatal error when activating my custom wordpress plugin
- Front End Page Not Loading Header Footer
- Media Upload to custom database and Custom Directory
- Help Code Review – I need to write on .htaccess file from theme’s function.php
- TinyMCE how to add css when inputing a text
- Can plugin automatically update if i hide the update notification?
- Apache rewrite rules and wordpress problem
- How to add a handler for a button in plugin?
- Many Field in Front End User Registration form insert as post
- How to show an image popup when one clicks on an image thumbnail?
- wordpress last all added get meta value by post id
- Get all the related data from WordPress DB
- wp doesn’t recognize my plugin if I don’t login as WP user (or as WP Admin)
- Possible to add “Template” selector to pages? Is Any Plugins are There..?