Hovering blocks in block selector causes error when core/image is turned off

Created on 6 February 2025, 2 months ago

Hovering over column block and gallery block in block selector left panel causes error when block image is not enabled.

Better shown:

I have disabled core/image as I use media, and you get this error only when hovering the column and gallery blocks in the sidebar. You can add the blocks just fine using other methods.

Error is:

Error: Block type 'core/image' is not registered.
    at __experimentalSanitizeBlockAttributes (https://MYSITE/modules/contrib/gutenberg/js/vendor/gutenberg/blocks/index.js?sqy7bw:8290:11)
    at createBlock (https://MYSITE/modules/contrib/gutenberg/js/vendor/gutenberg/blocks/index.js?sqy7bw:7674:31)
    at getBlockFromExample (https://MYSITE/modules/contrib/gutenberg/js/vendor/gutenberg/blocks/index.js?sqy7bw:8081:10)
    at https://MYSITE/modules/contrib/gutenberg/js/vendor/gutenberg/blocks/index.js?sqy7bw:8081:185
    at Array.map (<anonymous>)
    at getBlockFromExample (https://MYSITE/modules/contrib/gutenberg/js/vendor/gutenberg/blocks/index.js?sqy7bw:8081:167)
    at https://MYSITE/modules/contrib/gutenberg/js/vendor/gutenberg/block-editor/index.js?sqy7bw:26741:70
    at Object.bi [as useMemo] (https://MYSITE/modules/contrib/gutenberg/js/vendor/react-dom.min.js?v=16.8.4:118:131)
    at c.useMemo (https://MYSITE/modules/contrib/gutenberg/js/vendor/react.min.js?v=16.8.4:29:322)
    at InserterPreviewPanel (https://MYSITE/modules/contrib/gutenberg/js/vendor/gutenberg/block-editor/index.js?sqy7bw:26737:65)

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇳🇴Norway vegardjo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024