liip / bootstrap-blocks-wordpress-plugin

Bootstrap Gutenberg Blocks for WordPress
https://wordpress.org/plugins/wp-bootstrap-blocks/
279 stars 60 forks source link

All blocks are gone. #53

Closed npmDude closed 3 years ago

npmDude commented 4 years ago

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.

tschortsch commented 4 years ago

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

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

npmDude commented 4 years ago

Is this working on npm run build also?

tschortsch commented 4 years ago

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

npmDude commented 4 years ago

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.

tschortsch commented 4 years ago

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.

npmDude commented 4 years ago

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

npmDude commented 4 years ago

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?

tschortsch commented 4 years ago

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