$(...).once is not a function on Drupal 10

Created on 19 August 2024, 3 months ago
Updated 18 September 2024, 2 months ago

Problem/Motivation

On Drupal 10.x the module shows a console error:

Uncaught TypeError: $(...).once is not a function
at Object.attach (inotify_mercure.js?shqgv2:9:10)
at drupal.js?v=10.2.2:166:24
at Array.forEach ()
at Drupal.attachBehaviors (drupal.js?v=10.2.2:162:34)
at drupal.init.js?v=10.2.2:32:12
at HTMLDocument.listener (drupal.init.js?v=10.2.2:20:7)

Steps to reproduce

Install the module on drupal 10.x

Proposed resolution

Remove jQuery dependency from the once feature

๐Ÿ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

๐Ÿ‡ฏ๐Ÿ‡ดJordan Manar Olimat

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024