Uncaught ReferenceError: Drupal is not defined in init.js

Created on 7 November 2024, about 1 month ago

After installing the theme, Google Chrome complains about the contents of the init.js file

At the same time, the mobile menu for an anonymous user does not work.

Uncaught ReferenceError: Drupal is not defined

/* Use Drupal library file 'weight' key (negative numbers only) to ensure this is loaded after all other Rivet JS libraries. */
(function (Drupal, Rivet) {
Drupal.behaviors.rivet_init = {
attach(context) {
Rivet.init();
},
};
})(Drupal, window.Rivet);

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇾Belarus arturbaranok Vitebsk

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