Cannot read properties of undefined (reading 'attach') on D10.4.x

Created on 13 January 2025, 10 days ago

Problem/Motivation

When I upgrade from Drupal 10.3.10 to D10.4.1, the formatted edition text boxes for ACE or even CKEditor no longer work.

I get the following error in the js console:

drupal.js?v=10.4.1:64 Uncaught TypeError: Cannot read properties of undefined (reading 'attach')
    at Drupal.editorAttach (editor.js?v=10.4.1:304:37)
    at editor.js?v=10.4.1:228:18
    at Array.forEach (<anonymous>)
    at Object.attach (editor.js?v=10.4.1:211:52)
    at drupal.js?v=10.4.1:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.4.1:162:34)
    at big_pipe.js?v=10.4.1:153:10
    at big_pipe.js?v=10.4.1:184:3

If I go back to 10.3.10 or delete the ACE module, editable zone formatting works again.

Steps to reproduce

Install the ACE module and Drupal 10.4.1 and try to modify an Article node, for example.

Proposed resolution

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France steveoriol Grenoble 🇫🇷

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

Comments & Activities

Production build 0.71.5 2024