Gutenberg editor fails to load with Group module - JavaScript destructuring error

Created on 10 July 2025, 4 months ago

When using the Gutenberg with the Group module, attempting to add or edit nodes through Group module routes (e.g., adding content to a group) results in a JavaScript error that prevents the Gutenberg editor from loading:

gutenberg.js:147 Uncaught (in promise) TypeError: Cannot destructure property 'contentType' of 'format.editorSettings' as it is null.
    at Object.attach (gutenberg.js:147:15)

Steps to Reproduce

  • Install and enable both Gutenberg and Group modules
  • Create a group
  • Configure a content type to use Gutenberg editor
  • Navigate to add content to the group (e.g., /group/1/content/add/group_node:article)
  • Observe the JavaScript error in browser console and Gutenberg editor fails to load

Root Cause

The GutenbergContentTypeManager::getGutenbergNodeTypeFromRoute() method correctly invokes the hook_gutenberg_node_type_route hook for custom routes, but no implementation exists for Group module routes (entity.group_relationship.create_form and entity.group_relationship.edit_form).

Proposed Solution

Implement the hook_gutenberg_node_type_route() hook to handle Group module routes, as documented in gutenberg.api.php.oup module compatibility.
Previously in the issue 3163200 📌 Make Gutenberg entity-type-agnostic Needs work

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

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

Merge Requests

Comments & Activities

  • Issue created by @doxigo
  • Pipeline finished with Failed
    4 months ago
    Total: 453s
    #543932
  • Pipeline finished with Success
    about 2 months ago
    Total: 484s
    #598394
  • Pipeline finished with Success
    about 2 months ago
    Total: 487s
    #598417
  • Pipeline finished with Success
    about 2 months ago
    Total: 757s
    #598431
  • Pipeline finished with Failed
    17 days ago
    Total: 431s
    #633770
  • Pipeline finished with Success
    11 days ago
    Total: 123s
    #640194
  • Pipeline finished with Success
    11 days ago
    Total: 229s
    #640204
  • Pipeline finished with Failed
    10 days ago
    Total: 1092s
    #641306
  • Pipeline finished with Failed
    9 days ago
    Total: 1023s
    #642011
  • Pipeline finished with Failed
    9 days ago
    Total: 274s
    #642055
  • Pipeline finished with Failed
    9 days ago
    Total: 1134s
    #642061
  • Pipeline finished with Failed
    8 days ago
    Total: 587s
    #643196
  • Pipeline finished with Failed
    8 days ago
    Total: 843s
    #643275
  • Pipeline finished with Failed
    8 days ago
    Total: 742s
    #643294
  • Pipeline finished with Canceled
    8 days ago
    Total: 313s
    #643310
  • Pipeline finished with Failed
    8 days ago
    Total: 1095s
    #643316
  • Pipeline finished with Failed
    8 days ago
    Total: 1043s
    #643520
  • Pipeline finished with Failed
    8 days ago
    Total: 944s
    #643540
  • Pipeline finished with Canceled
    8 days ago
    Total: 159s
    #643570
  • Pipeline finished with Failed
    8 days ago
    Total: 925s
    #643571
  • Pipeline finished with Failed
    8 days ago
    Total: 1275s
    #643593
  • Pipeline finished with Failed
    8 days ago
    Total: 721s
    #643641
  • Pipeline finished with Failed
    8 days ago
    Total: 1025s
    #643657
  • Pipeline finished with Failed
    8 days ago
    Total: 1088s
    #643685
  • Pipeline finished with Success
    8 days ago
    Total: 1318s
    #643694
  • Pipeline finished with Failed
    4 days ago
    #646971
Production build 0.71.5 2024