Gutenberg: Gutenberg standalone editor does not work

Created on 12 Jul 2020  路  5Comments  路  Source: WordPress/gutenberg

Describe the bug

Gutenberg standalone editor does not work

Codesandbox: https://codesandbox.io/s/gutenberg-standalone-wvqf5

The code here is copied from @wordpress/block-editor npm package description - https://www.npmjs.com/package/@wordpress/block-editor

To reproduce

  1. Go to the sandbox.
  2. Wait for modules and basic UI to load.
  3. Click on + to add a block.
  4. UI CRASH.

Expected behavior
Blocks list is displayed

** Screenshots
Initial Render
InitialRender

Issue

Issue

Editor version (please complete the following information):

List of packages from package.json

    "@wordpress/base-styles": "2.0.0",
    "@wordpress/block-editor": "4.3.0",
    "@wordpress/block-library": "2.22.0",
    "@wordpress/components": "10.0.0",
    "@wordpress/dom-ready": "2.10.0",
    "@wordpress/element": "2.16.0",
    "@wordpress/format-library": "1.22.0",
    "node-sass": "4.14.1",

Desktop (please complete the following information):
MAC OS.
Chrome latest, Firefox latest

[Feature] Inserter [Type] Bug

All 5 comments

Can be temporarily fixed by adding settings to the editor provider:

<BlockEditorProvider
  value={blocks}
  onInput={updateBlocks}
  onChange={updateBlocks}
  settings={{ __experimentalBlockPatterns: [] }}
>

Updated my codesandbox, that fixes the issue.
Thank You @ktmn

Hey @ktmn, Is there a separate issue tracking this? If not, it seems like this issue should be kept open.

Yeah this issue should probably be kept open, the actual problem is somewhere else, here or maybe here, no default value assigned to patterns.

This was fixed by #24554

Was this page helpful?
0 / 5 - 0 ratings