This fixed it in block.json:
"editorScript": "file:index.js"
This is what I used before:
"editorScript": "file:./index.js",
Related Posts:
- How to make a WordPress plugin translation ready?
- How to provide translations for a WordPress TinyMCE plugin?
- Problems with localization
- `wp_set_script_translations` with `wp.i18n` does not return translated strings in simple plugin
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- How to i18n text coming from the db or from an external source
- Should I always prefer esc_attr_e & esc_html_e instead of _e?
- Should shorcodes in i18n plugins be translated and if so, how?
- Generate JSON files for language translation from po file without wp-cli i18n make-json
- How to prevent someone from entering strings without making it available for translation?
- Plugin language always shows WP site language, not profile language
- Is hint for translator compulsory while internationalizing a string containing variables?
- Translation not working for Constant strings in Plugin
- get the queried_object of an url
- Save translation file of third party plugin in a custom plugin?
- check if Gutenberg is currently in use
- How to use PanelColorSettings in custom Gutenberg block?
- Adding pre-publish checks with Gutenberg
- Managing two editable fields in gutenberg
- How to make repeated component/block in Gutenberg
- How to save block attributes when the output doesn’t change
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- Gutenberg ServerSideRender is deprecated, how to work with new wp.serverSideRender component?
- How to get data from WordPress $wpdb into React Gutenberg Blocks Frontend?
- lodash dependency in a Gutenberg plugin
- How to properly load text domain of custom mu plugin
- WordPress Localization and Templating
- creating elements/innerblocks via rangecontrol
- What’s the Right Way to get and save remote data for a Gutenberg block?
- How to update the language used by wordpress from a plugin
- Singular name Plugin localization
- How to Parse an Array of Elements in Gutenberg Block
- Using the component outside the editor. select(‘core’) is null
- Gutenberg is there a way to know if the current block is reusable?
- How to disable “Transform to” option in Gutenberg custom blocks
- How to allow core Gutenberg blocks selection only when you are inside a custom inner block
- Saving data from block editor to the database
- Gutenberg – What is the best way to save/update post meta?
- Initial help with official “create a block” tutorial
- Some strings from a .mo file do not load
- Widget translation on my plugin
- How do I dynamically render an InnerBlock inside a dynamic block?
- Frontend language per user
- Gutenberg Block showing invalid content on edit
- Gutenberg blocks not getting styled on back end
- How to setAttributes in Gutenberg block?
- Run code once when block is created
- Best way to save custom css for an block
- How can I listen to events in Gutenberg block?
- It’s possible to passing a ref to FormTokenField from parent component using forwardRef?
- WP Gutenberg Blocks – How to limit first/root blocks
- ResizableBox with RangeControl not working
- Gutenberg: import dependency or assign from global variable?
- Is there a way to test that readme looks in other language before submitting translation?
- Translation per IP location [closed]
- Shortcode returning localized HTML part
- Gutenberg table block with Bootstrap .table class
- Translate MCE button text/tooltip in custom plugin
- How to control an elements classes from multiple Gutenberg sidebar controls?
- How to add a gradient component to a custom block
- esc_html__() and __() not working within arrays
- Return Value of load_plugin_textdomain
- How to add template colors to custom block options in WordPress Gutenberg editor sidebar?
- How to use apiFetch to get author information in Gutenberg properly?
- Gutenberg blocks error: Each child in a list should have a unique “key” prop
- How to properly package a block plugin
- Setting global block attribute value
- Translation issue with global variables
- How to ignore extra whitespaces in translation functions like _e?
- Plugin not properly prepared for localization
- Modify custom block plugin without losing content
- Custom Block Not Shown in Block Inserter
- How to override supports of innerBlocks?
- When setting styles to an extended block that was saved as a pattern, it doesn’t remove the style that was there
- Use localized plugin name and description even when the plugin is disabled
- extraprops override existing props
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- Gutenberg block breaks when showing new data
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- How to re-render inspector controls?
- Transform internationalized plugin into internationalized mu-plugin?
- Get value of custom checkbox from Gutenberg sidebar in plugin
- Where to save Gutenberg plugin data?
- Gutenberg component in a plugin admin
- How to integrate plugins into block editor
- Add custom html classes to gutenberg wrapper
- Plugin translation not being displayed
- Problem with Poedit [closed]
- Gutenberg and custom blocks messed up pagespeed score. What did I wrong?
- Gutenberg text field validation
- Undo operation not working in Rich text [Gutenberg]
- Accept only PDF file for upload
- Build a dynamic block using the default attributes
- Add custom data-attribute to core Gutenberg block within an template
- Call API on post save/update and show the result in admin area
- How to get custom user meta by id in custom Gutenberg block
- How to replace content of a block in and re-render on change?
- extending a core block doesn’t work inside the editor
- How to get locale within WP REST Request?
- Remove Gutenberg Buttons Block