storefront
storefront copied to clipboard
Error in console when searching for blocks/viewing block previews
Describe the bug
When searching for blocks in the editor, an error is sometimes shown
Stylesheet storefront-gutenberg-blocks-css was not properly added.
For blocks, use the block API's style (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#style) or editorStyle (https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-style).
For themes, use add_editor_style (https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#editor-styles). <link rel="stylesheet" id="storefront-gutenberg-blocks-css" href="https://sticky-scallop.jurassic.ninja/wp-content/themes/storefront/assets/css/base/gutenberg-blocks.css?ver=3.8.1" media="all">
Isolating the problem (mark completed items with an [x]):
- [x] I have deactivated other plugins and themes and confirmed this bug occurs when only WooCommerce + Storefront theme are active.
- [x] I can reproduce this bug consistently using the steps below.
To Reproduce
Steps to reproduce the behavior:
- Go to a page in the editor and open the block inserter.
- Mouse over some blocks so the preview loads.
- Notice the error in the console.
Expected behavior
No error should be shown.
According to this issue, after an update, now on the console, there is a warning message. Since nothing is broken, I will add the low priority label