Uncaught ReferenceError: $ is not defined

Created on 24 November 2020, over 3 years ago
Updated 28 December 2023, 6 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.69.0 2024