Uncaught ReferenceError: Drupal is not defined

Created on 17 November 2023, 8 months ago
Updated 21 March 2024, 3 months ago

Problem/Motivation

We are getting an Uncaught ReferenceError: Drupal is not defined for anonymous users.

Steps to reproduce

1. Enable imagelightbox for an image field
2. Visit the node using an anonymous session
3. Check browser console

checked on:
drupal/core 10.1.6
drupal/imagelightbox 2.2.2

Proposed resolution

Add the - core/drupal dependency to the imagelightbox.libraries.yml file.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland piridium

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

Comments & Activities

Production build 0.69.0 2024