Jquery "Uncaught TypeError: $(...).once is not a function" issue in Drupal 10

Created on 21 March 2024, 8 months ago
Updated 1 June 2024, 6 months ago

Problem/Motivation

A console error shows after upgrading to Drupal 10, the error is as follows:

Uncaught TypeError: $(...).once is not a function
    at Object.attach (details.js)

Steps to reproduce

Check the console after upgrading to Drupal 10, the error should appear on the backend node create pages.

Proposed resolution

Provided a patch that rewrites the .once function in field_group/formatters/details/details.js in a way that is compatible with Drupal 10 latest changes and scripts' requirements.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

3.4

Component

Code

Created by

🇯🇴Jordan RaniaMashaqbeh

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

Comments & Activities

Production build 0.71.5 2024