Avoid "Uncaught ReferenceError: Drupal is not defined" for anonymous users.

Created on 10 September 2020, over 4 years ago
Updated 3 December 2024, 17 days ago

Problem/Motivation

For Anonymous users that visits a page with fullPage.js this one doesn't work for known js error "Uncaught ReferenceError: Drupal is not defined". This error happens whenever there's a module that use, in its libraries, Drupal without requiring the core/drupal library dependency.

Steps to reproduce

  1. Enable fullPage.js for specific content type.
  2. Create a node of the type of content type just created.
  3. Visit the node using an anonymous session.
  4. Check the browser's console.

Proposed resolution

Add the - core/drupal dependency to the file.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇹Italy reinchek Napoli 🌋, 🇮🇹

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