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

Gutenberg standalone editor does not work #23885

Closed
saas-developer opened this issue Jul 11, 2020 · 5 comments
Closed

Gutenberg standalone editor does not work #23885

saas-developer opened this issue Jul 11, 2020 · 5 comments
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended

Comments

@saas-developer
Copy link

saas-developer commented Jul 11, 2020

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

@ktmn
Copy link

ktmn commented Jul 14, 2020

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

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

@saas-developer
Copy link
Author

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

@talldan
Copy link
Contributor

talldan commented Jul 14, 2020

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

@ktmn
Copy link

ktmn commented Jul 14, 2020

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

@talldan talldan reopened this Jul 14, 2020
@talldan talldan added [Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended labels Jul 14, 2020
@talldan
Copy link
Contributor

talldan commented Oct 12, 2020

This was fixed by #24554

@talldan talldan closed this as completed Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

3 participants