storefront icon indicating copy to clipboard operation
storefront copied to clipboard

Error in console when searching for blocks/viewing block previews

Open opr opened this issue 3 years ago • 1 comments

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:

  1. Go to a page in the editor and open the block inserter.
  2. Mouse over some blocks so the preview loads.
  3. Notice the error in the console.

Expected behavior

No error should be shown.

opr avatar Sep 14 '21 18:09 opr

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

gigitux avatar Nov 24 '21 11:11 gigitux