Uncaught ReferenceError: Drupal is not defined

Created on 18 January 2023, over 2 years ago
Updated 20 March 2023, about 2 years ago

When using Gmap in conjunction with the Bootstrap theme the gmap_markers.js script is loaded before Drupal.js and this is causing the following error: Uncaught ReferenceError: Drupal is not defined.
This is happening because the script was added as type external.

Proposed resolution

Change the code to add the 'scope' => 'footer'.

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom Alina Basarabeanu

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024