Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in console when searching for blocks/viewing block previews #1783

Open
2 tasks done
opr opened this issue Sep 14, 2021 · 1 comment
Open
2 tasks done

Error in console when searching for blocks/viewing block previews #1783

opr opened this issue Sep 14, 2021 · 1 comment
Labels
category: refactor The issue/PR is related to refactoring. category: styles Issues related to styling editor Issues related to the editor styles priority: normal The issue/PR is low priority—not many people are affected or there’s a workaround, etc.

Comments

@opr
Copy link
Contributor

opr commented Sep 14, 2021

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]):

  • I have deactivated other plugins and themes and confirmed this bug occurs when only WooCommerce + Storefront theme are active.
  • 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 opr added type: bug The issue is a confirmed bug. category: styles Issues related to styling editor Issues related to the editor styles labels Sep 14, 2021
@gigitux gigitux self-assigned this Nov 22, 2021
@gigitux
Copy link
Contributor

gigitux commented Nov 24, 2021

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 gigitux added priority: normal The issue/PR is low priority—not many people are affected or there’s a workaround, etc. category: refactor The issue/PR is related to refactoring. and removed type: bug The issue is a confirmed bug. labels Nov 24, 2021
@gigitux gigitux removed their assignment Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: refactor The issue/PR is related to refactoring. category: styles Issues related to styling editor Issues related to the editor styles priority: normal The issue/PR is low priority—not many people are affected or there’s a workaround, etc.
Projects
None yet
Development

No branches or pull requests

2 participants