Console error - Uncaught TypeError: Drupal.toolbar is undefined in 5.*.x

Created on 20 February 2025, about 1 month ago

Problem/Motivation

While upgrading to Drupal 10.4.x, I encountered this error in 5.x :

Uncaught TypeError: Drupal.toolbar is undefined
     /modules/contrib/responsive_menu/js/views/ToolbarVisualView.js?v=10.4.3

This is similar error that was resolved in 3404945 🐛 Uncaught TypeError: Drupal.toolbar is undefined Active . Opening this issue as other issue is closed and committed to 4.4.x

Proposed resolution

I have added a patch for 5.0.x which includes toolbar/toolbar dependency for `responsive_menu.toolbar` in responsive_menu.libraries.yml for 5.x

🐛 Bug report
Status

Needs review

Version

5.0

Component

Code

Created by

🇦🇺Australia navkaur

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

Comments & Activities

Production build 0.71.5 2024