Uncaught ReferenceError: $ is not defined

Created on 24 November 2020, about 4 years ago
Updated 28 December 2023, 12 months ago

Problem/Motivation

After adding the script in the admin page and clearing the cache, I get the following error:
Uncaught ReferenceError: $ is not defined

In my theme I have these dependencies: core/drupal and core/jquery and jQuery is working in the page.

Steps to reproduce

- Get the script code
- Remove comments at the beginning and the end
- Save and clear cache
- Go to homepage

Proposed resolution

Not sure what the solution would be, but I think the script is running before jQuery.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain guardiola86

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.

  • 🇷🇴Romania rrotari

    As Drupal 8 is long dead this issue can be closed.
    Just to be safe I tested this in Drupal 9 and Drupal 10 and could not reproduce the issue.

Production build 0.71.5 2024