Editor not loading (Drupal 10.3.1, Gutenberg 3.0.2)

Created on 11 July 2024, 4 months ago
Updated 12 August 2024, 3 months ago

Gutenberg not loading on node edit page

We have recently updated core to 10.3.1 which gave us error messages with Gutenberg so we updated that module to 3.0.2. While the error messages have gone, we are now not able to load Gutenberg on the page editor.

The following error appears in Console:

Uncaught (in promise) TypeError: gutenbergSettings.allowedDrupalBlocks.includes is not a function
    at registerBlock (drupal-media.js?sgge19:32:48)
    at drupal-media.js?sgge19:98:7
    at new Promise (<anonymous>)
    at registerDrupalMedia (drupal-media.js?sgge19:96:37)
    at Object.attach (gutenberg.js?sgge19:170:13)
🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom chaz1975

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @chaz1975
  • 🇳🇴Norway eiriksm Norway

    This seems possible to add a test for so tagging for that

  • 🇳🇴Norway eiriksm Norway

    I assume if you go to edit the content type in question with Gutenberg enabled and click save, the error might go away? 🤓✌️

  • 🇬🇧United Kingdom chaz1975

    @eiriksm, thank you for tagging.

    I've just done what you suggested and the error has indeed gone away!

    This is brilliant, I think I get what's happened. Will we need to do this on each subsequent update of Gutenberg?

  • 🇳🇴Norway eiriksm Norway

    Not at all. This is a bug, it should be fixed. You opening this issue is super important in getting it fixed, so thank you for that 🤓♥️💪

  • Merge request !171Resolve #3460790 "Editor not loading" → (Open) created by eiriksm
  • 🇳🇴Norway eiriksm Norway

    Tried to create a MR with a fix and "manually" compiled the js all on my phone. What a time to be alive 🤓✌️

    Still needs tests though

  • Pipeline finished with Success
    4 months ago
    Total: 252s
    #222110
  • 🇺🇸United States webdrips

    This seems to work okay with Claro, but with Gin (plus the Gin Gutenberg module). I left a comment here: https://www.drupal.org/project/gin_gutenberg/issues/3460326#comment-1568... 🐛 Javascript error preventing gutenberg editor from loading. Active

    Nice work @eiriksm LOL that's a bit insane, but looks like you pulled it off :)

  • 🇮🇳India Pemson18 Goa

    rm -rf vendor and contrib modules folder and then composer install back the vendor and contrib modules fixes this issue

  • 🇺🇸United States loze Los Angeles

    The MR here gets it working for me 🐛 Save button missing when using the Gutenberg/Mercury editor module Fixed

  • Pipeline finished with Success
    4 months ago
    Total: 214s
    #243640
  • Pipeline finished with Success
    4 months ago
    Total: 207s
    #243669
  • Pipeline finished with Failed
    4 months ago
    Total: 207s
    #245992
  • Pipeline finished with Failed
    4 months ago
    Total: 205s
    #245993
  • Pipeline finished with Success
    4 months ago
    #246490
  • Pipeline finished with Success
    4 months ago
    Total: 203s
    #246692
  • Pipeline finished with Success
    4 months ago
    Total: 212s
    #246752
  • Pipeline finished with Success
    4 months ago
    Total: 259s
    #247620
  • Pipeline finished with Failed
    4 months ago
    #247663
  • Pipeline finished with Success
    4 months ago
    Total: 220s
    #247793
  • Pipeline finished with Success
    4 months ago
    Total: 304s
    #247854
  • Pipeline finished with Canceled
    4 months ago
    #247880
  • Pipeline finished with Success
    4 months ago
    #247881
  • Pipeline finished with Success
    4 months ago
    Total: 216s
    #247906
  • Pipeline finished with Failed
    3 months ago
    Total: 170s
    #254168
  • Pipeline finished with Failed
    3 months ago
    Total: 357s
    #254202
  • Pipeline finished with Canceled
    3 months ago
    Total: 80s
    #255050
  • Pipeline finished with Success
    3 months ago
    Total: 1345s
    #255053
  • Pipeline finished with Success
    3 months ago
    Total: 255s
    #255087
  • Pipeline finished with Failed
    about 2 months ago
    Total: 363s
    #295585
  • Pipeline finished with Failed
    about 1 month ago
    Total: 186s
    #306632
  • Pipeline finished with Success
    about 1 month ago
    Total: 309s
    #306946
  • Pipeline finished with Success
    about 1 month ago
    Total: 221s
    #306949
  • Pipeline finished with Success
    9 days ago
    Total: 154s
    #336852
Production build 0.71.5 2024