Uncaught TypeError: Drupal.toolbar is undefined

Created on 29 November 2023, over 1 year ago

Problem/Motivation

I've got this error agter upgrading on D10.1.6.

Uncaught TypeError: Drupal.toolbar is undefined
    <anonymous> http://site.local/modules/contrib/responsive_menu/js/views/ToolbarVisualView.js?v=10.1.6:12

I am using the Gin toolbar module, but this looks unrelated.

Anyway the responsive_menu.toolbar uses the Drupal.toolbar object, but doesn't declare it in its dependencies. So the library can be loaded before the toolbar library, and we get this error.

Proposed resolution

Add the toolbar/toolbar library as a dependency to ensure the responsive_menu.toolbar library is loaded after the toolbar library.

๐Ÿ› Bug report
Status

Active

Version

4.4

Component

Code

Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance flocondetoile Lyon

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024