liip / bootstrap-blocks-wordpress-plugin

Bootstrap Gutenberg Blocks for WordPress

Home Page:https://wordpress.org/plugins/wp-bootstrap-blocks/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

All blocks are gone.

npmDude opened this issue · comments

After updating to version v2.4.0 and also updating Gutenberg to v8.5.1, all of the bootstrap blocks are gone.
This time no error on the console.

Note: I also have a plugin that uses the wp-scripts' latest version.

Please try to test this on your end.

Hmm, sorry I can't really reproduce this. I tried it with the following setup:

  • WordPress v5.4.2
  • wp-bootstrap-blocks v2.4.0 (which uses @wordpress/scripts v12.1.0)
  • wp-scripts-plugin (example plugin which also uses @wordpress/scripts v12.1.0)
  • Gutenberg v8.5.1

When I activate all of these plugins I'm still able to insert the blocks provided by them.

Is this working on npm run build also?

Yes, both plugins use assets which were built with the npm run build command.

Can you try adding 2 blocks on your wp-scripts-plugin? Maybe a copy of the Row and Column block from the wp-bootstrap-blocks. Just because when I added a blocks on my plugin that has a parent and allowed blocks relation, then all of the blocks from wp-bootstrap-blocks plugin is gone. Without any errors on the console.

I copy/pasted both the row and column blocks (including parent/child relation) from this plugin to the wp-scripts-plugin and the blocks were still all available.

Alright thanks. Maybe this is an internal problem. It is really hard because there is on console error.

After a few more testing, I noticed that on my plugin if I rearrange the import on the src/index.js file then blocks from your plugin will comeback. Do you have any idea on why this is happening?

Maybe there's still an issue in the @wordpress/scripts package? Is your plugin somewhere on GitHub or could you share the it?